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

On 26 June 2014 23:03, Alfredo Alessandrini <alfreal...@gmail.com> wrote:
> 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
_______________________________________________
Community mailing list
Community@lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community

Reply via email to