[gdal-dev] ogr.BuildPolygonFromEdges as called from python segfaults

David Fuhry dfuhry at acm.org
Sat May 17 21:31:06 EDT 2008


ogr.BuildPolygonFromEdges as called from python is always throwing an 
exception for me, and perhaps always segfaulting:

$ ./test_build_poly.py
BuildPolygonFromEdges failed.
Segmentation fault

I first experienced the error running swig/python/samples/tigerpoly.py 
on some TIGER data.  I duplicated some of tigerpoly.pl into a reduced 
python testcase (attached).

Tested with both svn head and 1.5.1, on both RHEL4 x86_64 and Debian 
x86_64.  I don't know the debugging procedure for tracing python calls 
into C++.  Suggestions on that or how to fix the bug welcome.

Thanks,

Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_build_poly.py
Type: text/x-python
Size: 473 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080517/bb08ed59/test_build_poly.py
-------------- next part --------------
LINESTRING (-87.601595000000003 30.999521999999999,-87.599622999999994 31.000059,-87.599219000000005 31.00017)
LINESTRING (-87.601595000000003 30.999521999999999,-87.604348999999999 30.999493,-87.606934999999993 30.99952)
LINESTRING (-87.59966 31.000755999999999,-87.599851 31.000805,-87.599992 31.000805,-87.600215000000006 31.000761,-87.600279 31.000723,-87.600586000000007 31.000623999999998,-87.601256000000006 31.000508,-87.602501000000004 31.000447,-87.602800999999999 31.000468999999999,-87.603108000000006 31.000578999999998,-87.603330999999997 31.000716,-87.603522999999996 31.000909,-87.603765999999993 31.001232999999999,-87.603913000000006 31.001359999999998)
LINESTRING (-87.606133999999997 31.000181999999999,-87.605885 31.000325,-87.605343000000005 31.000716,-87.604659999999996 31.001117,-87.604467999999997 31.0012,-87.603913000000006 31.001359999999998)
LINESTRING (-87.599219000000005 31.00017,-87.599288999999999 31.000299999999999,-87.599397999999994 31.000426,-87.599564 31.000547,-87.599609 31.000700999999999,-87.59966 31.000755999999999)
LINESTRING (-87.606934999999993 30.99952,-87.606712999999999 30.999798999999999,-87.606399999999994 30.999980999999998,-87.606133999999997 31.000181999999999)


More information about the gdal-dev mailing list