[gdal-dev] Polygon topology

Chaitanya kumar CH chaitanya.ch at gmail.com
Tue Mar 8 04:33:11 EST 2011


I'm sorry. I now see that this method is not exposed in the python bindings.

On Tue, Mar 8, 2011 at 2:59 PM, Chaitanya kumar CH
<chaitanya.ch at gmail.com>wrote:

> Simon,
>
> You can use the OGRPolygon::getNumInteriorRings() method to get the number
> of holes in an OGR polygon object.
>
> On Tue, Mar 8, 2011 at 2:27 PM, Simon Lyngby Kokkendorff <silyko at gmail.com
> > wrote:
>
>> Hi List,
>>
>>   I am using ogr via the python bindings to construct various polygons.
>> Here's just a simple question, to which someone might have some input. Is
>> there anyway to determine the topology, i.e. the number of holes, of a
>> polygon without e.g. having to export to WKT and examining the output
>> string. There doesn't seem to be any methods exposed in the bindings to do
>> this directly?
>>
>>   Cheers,
>>   Simon Kokkendorff,
>>   National Survey and Cadastre of Denmark
>>
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
> /tʃaɪθənjə/ /kʊmɑr/
> +91-9494447584
> 17.2416N 80.1426E
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110308/91eb843e/attachment.html


More information about the gdal-dev mailing list