I've just been trying to draw some lines on Google Earth using point coordinates and everything works but for a tiny detail. The lines go through the earth and don't follow the surface so they are usually invisible as I've got points all arround the globe. Any ideas?
line = kml.newlinestring(coords=[firstcoord, secondcoord])
Thanks in advance :)
You need to enable tesselate on the line geometry to follow the curvature of the earth.
To enable tessellation, the value for
<altitudeMode>
must be clampToGround or clampToSeaFloor otherwise tessellation flag will be ignored.Make sure the generated KML output looks something like this:
Python code to do this: