[gdal-dev] ogr.Geometry - UnionCascaded() question
Max Demars
burton449geo at gmail.com
Tue Sep 16 10:43:43 PDT 2014
Hi,
I want to do a union on many ogr.Geometry stored in a list, but I have a
TypeError: unbound method UnionCascaded() must be called with Geometry
instance as first argument (got list instance instead).
I though UnionCascaded was made to perform Union on many geometries like
this:
geometries = []
for feature in featureCollection['features']:
geometries.append(ogr.CreateGeometryFromJson(json.dumps(feature['geometry'])))
outputGeometry = ogr.Geometry
output = outputGeometry.UnionCascaded(geometries)
How am I supposed to use this function if list are not accepted?
Thank you,
-Max Demars
--
Stack Overflow: http://stackoverflow.com/users/1914034/burton449
GIS Overflow: http://gis.stackexchange.com/users/14426/burton449
LastFm: http://www.lastfm.fr/user/burton449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140916/c121d80c/attachment.html>
More information about the gdal-dev
mailing list