Actually, after looking at the PostGIS code again, I realized how 
straightforward it really is, and I quickly whipped something up:

http://bitbucket.org/miracle2k/pyutils/changeset/156c60ec88f8/

Feel free to add this to Shapely if you want.

I further realized that in my somewhat simplified use case, a simple 
point.distance(linestring) query would be enough ;)

One thing that is now still worrying me is this note on the Shapely site:

"There are several upstream issues with GEOS versions 2.2.3 and 3.0.0. 
The GEOS WKT and WKB writers leak, and so therefore does access of a 
geometry's *wkt* and *wkb* properties. There are smaller leaks 
associated with creation of some geometry types."

I'm writing a long-running server app, and memory leaks is not something 
I can just ignore. Is there any information as to which types are affected?

Michael
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to