ptrn
ptrn

Reputation: 5202

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

Upvotes: 3

Views: 1800

Answers (3)

LHo
LHo

Reputation: 133

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

Upvotes: 1

Fraser
Fraser

Reputation: 17039

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>

Upvotes: 2

dassouki
dassouki

Reputation: 6366

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

Upvotes: 1

Related Questions