views:

223

answers:

2

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 about doing that? I'm using KML.

A: 

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

dassouki
Just an update: I did it in Google Maps instead, where this is not a problem. Will check out your suggestion in the future though, thanks.
ptrn
@ptm post your answer, and i'll delete mine
dassouki
A: 

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>
Fraser