Draw line in Google Earth that takes account of the globe's curvature
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
精彩评论