【问题标题】:How can set "wait time" in CZML?如何在 CZML 中设置“等待时间”?
【发布时间】:2018-08-14 19:01:49
【问题描述】:

我有一些位置和时间值来描述某些车辆的运动。但是在某些时间间隔内,车辆会在某个位置等待。我不知道如何设置等待时间。?

在下面提供的示例数据中:对应于 40 和 50 的位置值相同 = (4, 4 ,0) 这意味着车辆在该位置等待 10 秒。但由于插值,它不起作用。

例如:

"position":{
      "interpolationAlgorithm":"LAGRANGE",
      "interpolationDegree":1,
      "epoch":"2012-08-04T16:00:00Z",
      "cartesian": [
        0.0,  0, 0, 0,
        10.0, 1 ,1 ,0,
        20.0, 2, 2, 0,
        30.0, 3, 3, 0,
        40.0, 4, 4, 0,
        50.0, 4, 4, 0
    ]
}

【问题讨论】:

    标签: cesium czml


    【解决方案1】:

    经过一番研究,我发现我们可以使用“间隔”属性。这样:

    "position" : [
            {
                "interval": "2018-08-07T23:50:00Z/2018-08-08T00:09:00Z",
                "cartographicDegrees" : [
                    "2018-08-07T23:50:00Z", 39.8495,43.3802,0,
                    "2018-08-08T00:00:00Z", 39.8734,43.4129,0,
                    "2018-08-08T00:09:00Z", 39.8048,43.4324,0
                ],
    
                "interpolationAlgorithm": "LAGRANGE",
                "interpolationDegree": 5
            },
    
            {
                "interval": "2018-08-08T00:09:00Z/2018-08-08T00:11:00Z",
                "cartographicDegrees" : [39.8048,43.4324,0]
            }, 
    ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-05
      • 1970-01-01
      • 2016-08-22
      相关资源
      最近更新 更多