[gdal-dev] Topological Union?

Mateusz Loskot mateusz at loskot.net
Thu Aug 28 18:36:27 EDT 2008

Craig Miller wrote:
> Thanks Mateusz.  That's exactly what I was thinking of doing if
> someone hasn't put it together already.


BTW, you don't have to convert OGRGeometry (you play with it when 
reading Shapefile using OGR) to geos::geom::Geometry.

You can union OGRGeometry using OGRGeometry::Union()
or its C API equivalent OGR_G_Union

These operations are based on GEOSUnion function.

Best regards,
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

More information about the gdal-dev mailing list