[gdal-dev] OGRGeometry -> OGRGeometryCollection

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] OGRGeometry -> OGRGeometryCollection

Florian Lohoff

Hi,

i am Intersecting to MultiPolygons and get a OGRGeometry which sometimes
contains a OGRGeometryCollection depending on the complexity of the
overlap. Now i'd like to iterate over the Geometries in the collection
but the OGRGeometry Class does not have the ->removeGeometry or
->getGeometryRef so i'd need to cast the OGRGeometry to a
OGRGeometryCollection. I saw that gdal 2.3 does have a
->toGeometryCollection but i am on Debian/Stretch which has gdal 2.1
so i am lost on how to extract the geometries of the GeometryCollection
in an OGRGeometry object.

Flo
--
Florian Lohoff                                                 [hidden email]
             UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

signature.asc (849 bytes) Download Attachment