Hi all,
I have a CZML track I’m trying to clamp to terrain, and I’m not having a lot of luck. See the code (with big blocks of coordinates removed for readability) at the bottom of this message. This CZML file generates a point and a line; as written, the code clamps the point to the ground, but not the polyline. Screenshot attached for reference. Any idea what I’m doing wrong?
CZML:
[{“id”: “document”, “name”: “Demo”, “version”: “1.0”,
"author": “Adam”, “clock”: {“interval”:
"2019-08-28T01:14:42+00:00/2019-09-02T14:50:51+00:00", “currentTime”:
"2019-08-28T01:14:42+00:00", “multiplier”: 10}}, {“id”: “path”,
"availability":
"2019-08-28T01:14:42+00:00/2019-09-02T14:50:51+00:00", “position”:
{“epoch”: “2019-08-28T01:14:42+00:00”, “cartographicDegrees”: [0,
-71.021238, 44.485148, 914.9, 7.0,
/A LOT OF NUMBERS HERE/
-68.921541, 45.904477, 1584.7, 480969.0, -68.921516, 45.904461,
1584.0]}, “path”: {“material”: {“polylineOutline”: {“color”: {“rgba”:
[255, 255, 255, 200]}, “outlineColor”: {“rgba”: [0, 173, 253, 200]},
"outlineWidth": 5, “heightReference”:
"CLAMP_TO_GROUND"}}, “width”: 6, “leadTime”: 0, “trailTime”: 519000,
"resolution": 5}}, {“id”: “Point”, “availability”:
"2019-08-28T01:14:42+00:00/2019-09-02T14:50:51+00:00", “position”:
{“epoch”: “2019-08-28T01:14:42+00:00”, “cartographicDegrees”: [0,
-71.021238, 44.485148, 30, 7.0,
/A LOT OF NUMBERS HERE/
480966.0, -68.921541, 45.904477, 30, 480969.0,
-68.921516, 45.904461, 30]}, “point”: {“color”: {“rgba”: [255, 255,
255, 255]}, “outlineColor”: {“rgba”: [0, 173, 253, 255]},
"outlineWidth": 6, “pixelSize”: 8, “heightReference”:
"CLAMP_TO_GROUND"}}]