[gdal-dev] OSGeo.OGR.Geometry: Union the mutiple geometries at a time
MRRAJESH
rajeshreddy82 at gmail.com
Wed Mar 17 22:01:20 PDT 2021
Developers,
We came to know that OSGeo.OGR.Geometry is having the *Union *method which
allows to the union of the two geometries (code snippet below). But this
allows us one by one. How to union the multiple geometries (say 1000
geometries) at a time? Any methods or libraries in GDAL?
OSGeo.OGR.Geometry g1 = OSGeo.OGR.Geometry.CreateFromWkt("POLYGON(......
OSGeo.OGR.Geometry g2 = OSGeo.OGR.Geometry.CreateFromWkt("POLYGON(......
OSGeo.OGR.Geometry g3 = OSGeo.OGR.Geometry.CreateFromWkt("POLYGON(......
OSGeo.OGR.Geometry unionGeometry = (g1.Union(g2)).Union(g3);
Regards,
Rajesh
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list