[gdal-dev] Python bindings: How to merge two geometries

vasile vasile.cotovanu at webgis.ro
Wed Sep 7 12:59:37 EDT 2011


Hello all,

I have a Shapefile layer and try to merge some features from it using OGR
Python bindings. Basically there are simple polylines that are connected
each-other, so the result should be a simple polyline as well (and not a
collection)

I am using this snippet of code(warning: that's my beginner's Python code)
to accomplish the merge but I get a 'Segmentation Fault 11' error:
http://pastie.org/2498129

Here is more from the crashlog: http://pastie.org/pastes/new

Anyone can help, put me on the right click with another example ?

Thanks,
Vasile

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Python-bindings-How-to-merge-two-geometries-tp6768614p6768614.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list