prepair icon indicating copy to clipboard operation
prepair copied to clipboard

Test case with memory issues with GEOS and JTS

Open mwtoews opened this issue 10 years ago • 1 comments

@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.

mwtoews avatar Dec 10 '15 22:12 mwtoews

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.

mwtoews avatar Dec 10 '15 23:12 mwtoews