What's new? | Help | Directory | Sign in
Google
  
  
  
  
    
Code License: MIT License
Labels: kml, python
Show all Featured Downloads:
kmlcircle-002.tar.gz
Show all Featured Wiki Pages:
HowToUse
Join project
Project owners:
  nickgsuperstar

Google Earth's KML format is oddly missing a RegularPolygon or Circle element. Until they get added in a future version, this code will generate the appropriate Polygon xml snippet. Regular polygons with more than 20 or 30 sides is a good approximation of a circle.

It's one file written in python, but i used a very "unexotic" coding style to aid in porting. It would take 10 minutes to port to PHP, javascript or perl (or C++ for that matter). Volunteers and requests welcome!

The algorithm and details will be posted shortly.

News

13-Sept-2007: Version 2 released! This simplifies the XML and adds a command line interface.

10-Sept-2007: Version 1

Circles

really you can make any type of regular polygon. If the number of sides is > 20 then it looks like a circle.

Stars