[postgis-users] location of point on linestring

strk at refractions.net strk at refractions.net
Thu Dec 8 08:03:30 PST 2005


The head branch contains line_locate_point(linestring, point).
It should be exactly what you're looking for.

--strk;

On Thu, Dec 08, 2005 at 04:03:43PM +0100, Alex Mayrhofer wrote:
> Hi,
> 
> I have a LINESTRING and a POINT which lies on (or "pretty close", see 
> below*) the LINESTRING.
> 
> I need to know the relative position of the POINT on the LINESTRING 
> (essentially the reverse of line_interpolate_point()).
> 
> Any idea how to do this?
> 
> thanks,
> 
> Alex
> ----
> * the POINT _should_ be exactly on the LINESTRING because it comes from an 
> intersect() operation.
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for low technology.
  X     Keep e-mail messages readable by any computer system.
 / \    Keep it ASCII. 




More information about the postgis-users mailing list