[gdal-dev] Ring orientation in polygons
Frank Warmerdam
warmerdam at pobox.com
Sun Mar 30 22:46:34 EDT 2008
Tim Mitchell wrote:
> Hi,
>
> I know the OpenGIS standard says the the exterior linear ring of a
> polygon is oriented clockwise and the interior rings are
> counterclockwise. I also know that no all data does this.
>
> I was just wondering if I can rely on an OGRPolygon object adhering to
> the OpenGIS standard even if the underlying data doesn't, or if I need
> to check the isClockwise() value on each ring I obtain from a polygon?
Tim,
Currently OGRPolygon does not enforce winding order, and you cannot
depend on polygons returned by drivers having any particular winding
order.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the gdal-dev
mailing list