twhiteaker / CFGeom

CF Convention for Representing Simple Geometry Types
MIT License
9 stars 4 forks source link

anticlockwise outside ring node in Python #70

Closed twhiteaker closed 7 years ago

twhiteaker commented 7 years ago

Enforce anticlockwise outside ring node order when writing netCDF in Python, per https://github.com/twhiteaker/netCDF-CF-simple-geometry/issues/54#issuecomment-289071115

Possible strategy is using Shapely geometry directly since shapely can orient nodes for us.

twhiteaker commented 7 years ago

Patched in 68f3b468eb87714e6d954c2e86e38e61d358bf63. Forcing polygons to round trip through Shapely. Not super efficient but gets the job done.