[gdal-dev] Polygon topology
Mike Toews
mwtoews at gmail.com
Tue Mar 8 05:44:12 EST 2011
On 8 March 2011 23:22, Even Rouault <even.rouault at mines-paris.org> wrote:
> Not exactly. In fact you have to use the Geometry.GetGeometryCount() that
> returns 1 (the exterior ring) + the number of interior rings. So
> polygon.GetGeometryCount() - 1 should return the number of interior rings
I initially thought so too, except that assumption doesn't work for
MultiPolygon geometry types.
-Mike
More information about the gdal-dev
mailing list