Google Earth is a magnificent tool useful for both GIS amateurs as well as for professionals.
In this post we'll cover how we can generate basic shapes such as squares and circles for Google Earth using python & KML.
KML:
KML (Keyhole Markup Language) is Google Earths XML based file format for describing geographic data. A KML document can contain different kinds of "features" such as:
- Placemarks
- Paths
- Polygons
Drawing a square in KML:
To draw a square shape in Google Earth using KML you can for example use KMLs polygon feature like this:
<?xml version="1.0" encoding="UTF-8"?> |
NB: In KML a point is specified as (lon, lat, alt), note lon comes before lat.
Next, do it with python (part 2):
No comments:
Post a Comment