Discussion:
[Community] Line_Locate_Point
Alfredo Alessandrini
2014-06-26 11:03:17 UTC
Permalink
Hi,

I'm looking for a Python function equivalent to this:
http://postgis.net/docs/ST_Line_Locate_Point.html

Is there any library that I can use (shapely, ....)?



Thanks,

Alfredo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20140626/63ffdaa6/attachment.htm>
Mike Toews
2014-06-26 21:05:54 UTC
Permalink
Hi Alfredo,

That linear referencing method is the 'project' method[1], which has a
'normalized' argument with a default of False to return the length
along the line. Setting normalized=True will return the fraction, just
as ST_LineLocatePoint does.

-Mike

[1] http://toblerity.org/shapely/manual.html#object.project
Post by Alfredo Alessandrini
Hi,
http://postgis.net/docs/ST_Line_Locate_Point.html
Is there any library that I can use (shapely, ....)?
Thanks,
Alfredo
Loading...