ST_LineLocatePoint(linestring: Geometry, point: Geometry)
SELECT ST_LineLocatePoint(ST_GeomFromWKT('LINESTRING(0 0, 1 1, 2 2)'), ST_GeomFromWKT('POINT(0 2)'))
0.5
Was this page helpful?