Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

How to check are there any OGRGeometry (polygons) within an OGRGeometry (polygon) ?

$
0
0

Please see my image:

Multipolygon

I used the below statements to get Geometry:

OGRGeometry *poGeometry;

poGeometry = poFeature->GetGeometryRef();

Do you know how to check whether the Polygon 1 (geometry) is empty (or include a small polygon) or not ?

If it is possible, how to get or identify the polygon 2 ?

Thanks and regards,

Tai


Viewing all articles
Browse latest Browse all 397

Trending Articles