[geos-devel] WKTReader and python bindings

John Cartwright john.c.cartwright at comcast.net
Fri Mar 10 00:19:33 EST 2006


Hello All,

I'm using the python bindings for version 2.2.1 and am surprised to  
find that while

gf = geos.GeometryFactory()
reader = geos.WKTReader(gf)
reader.read(wkt)

works fine, the code below segfaults.

reader = geos.WKTReader(geos.GeometryFactory())
geom = reader.read(wkt)

I would have thought the two code snippets would behave identically -  
can someone explain why not?

Thanks!

-- john




More information about the geos-devel mailing list