prepair
prepair copied to clipboard
Test case with memory issues with GEOS and JTS
@pramsey has posted a large invalid geometry that seems to have memory issues with both GEOS and JTS. I'm not sure if there are any issues with prepair, so this is a curious task to find out how it performs.
Looks like there are issues with prepare too.
$ wget https://dl.dropboxusercontent.com/u/1184727/deadly_isvalid_geom.zip
$ unzip deadly_isvalid_geom.zip
then convert to WKT in Python:
from osgeo import ogr
with open('deadly_isvalid_geom.txt') as fp:
g = ogr.CreateGeometryFromWkb(fp.readline().strip().decode('hex'))
with open('deadly_isvalid_wkt.txt', 'w') as fp:
fp.write(g.ExportToWkt())
then try...
$ ./prepair -f deadly_isvalid_wkt.txt
appears to have similar memory issues.