My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: kml, python, vb.net
Show all Featured wiki pages:
HowToUse
Feeds:

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

04-Apr-2009: Version 3??? Original python code translated to VB.NET

Adds code to use an oblate spheroid rather than a spherical model. Adds code to draw circular arcs as part of a polygon.
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

Arcs









Hosted by Google Code