开发者

Draw line in Google Earth that takes account of the globe's curvature

开发者 https://www.devze.com 2022-12-27 05:33 出处:网络
I want to draw some lines that would follow either the longitude or latitude, but it doesn\'t take the globe\'s curvature in account.

I want to draw some lines that would follow either the longitude or latitude, but it doesn't take the globe's curvature in account.

How would I go abou开发者_如何学Ct doing that? I'm using KML.


In KML if you mean you want the line to clamp to the ground then you would set 'altitudeModeEnum' to 'clampToGround' and testate to 1 (true. Like so.

<LineString id="myLine">
  <tessellate>1</tessellate>
  <altitudeMode>clampToGround</altitudeMode>
</LineString>


Use Gdal to draw the line layer, and ogr2gor (same site) to convert the layer into kml


You should try to break the line up with many vertices, so each one has an altitude. See here

0

精彩评论

暂无评论...
验证码 换一张
取 消