Forcing Right-Hand Rule (Counter Clockwise) Polygons in GeoDjango for Google Earth / KML
According to the KML Specification, Polygons must be oriented according to the Right-Hand Rule (Counter Clockwise orientation) for them to display correctly in Google Earth. Since not all Polygons are defined according to the Right-Hand Rule, you can use this code to orient them correctly when using GeoDjango. Thanks goes to jbronn of #geodjango on irc.freenode.net for this!
- geodjango
- kml
- google-earth
- polygon
- orientation
- right-hand-rule