def to_ccw(geom):
if isinstance(geom, sgeom.Polygon) and not geom.exterior.is_ccw:<EOL><INDENT>geom = sgeom.polygon.orient(geom)<EOL><DEDENT>return geom<EOL>
Reorients polygon to be wound counter-clockwise.