GIS: line_locate_point() in Python

Posted by miracle2k on Stack Overflow See other posts from Stack Overflow or by miracle2k
Published on 2009-08-18T17:35:18Z Indexed on 2010/06/05 12:02 UTC
Read the original article Hit count: 249

Filed under:
|
|
|
|

I'm pretty much a beginner when it comes to GIS, but I think I understand the basics - it doesn't seem to hard. But: All these acronyms and different libraries, GEOS, GDAL, PROJ, PCL, Shaply, OpenGEO, OGR, OGC, OWS and what not, each seemingly depending on any number of others, is slightly overwhelming me.

Here's what I would like to do: Given a number of points and a linestring, I want to determine the location on the line closest to a certain point. In other words, what PostGIS's line_locate_point() does:

http://postgis.refractions.net/documentation/manual-1.3/ch06.html#line%5Flocate%5Fpoint

Except I want do use plain Python. Which library or libraries should I have a look at generally for doing these kinds of spatial calculations in Python, and is there one that specifically supports a line_locate_point() equivalent?

© Stack Overflow or respective owner

Related posts about python

Related posts about postgresql