Search code examples
kmllatitude-longitudegoogle-earth

Google Earth KML with polygones with longitudes greater than 180deg?


I use polygones in kml files for displaying a rocket's flightpath from ground into orbit in google earth kml files.

the problem is, that google earth can't handle longitued greater than 180deg, so when a rocket will circle more than ones around the globe the longitued values has to be recalculated. Is there a way in using longitudes like 720deg and google can translate this by itself? I would prefer this, because I don'thave to change my programme and you can directly see the revolutions of the rocket around earth by its coordinates.


Solution

  • The KML definition indeed only allows arguments

    • between -180 and 180 for longitude
    • between -90 and 90 for latitude

    see KML Reference - element "coordinates"

    So I am afraid you will need to normalize your lon by introducing an angle function.