From: Regina Obe Date: Mon, 8 Jul 2013 06:57:13 +0000 (+0000) Subject: missed spot X-Git-Tag: 2.2.0rc1~1457 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d62471a925ed68025aa3548f761b8bffc528b692;p=postgis missed spot git-svn-id: http://svn.osgeo.org/postgis/trunk@11641 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_lrs.xml b/doc/reference_lrs.xml index cac98ee8e..6eeaa78eb 100644 --- a/doc/reference_lrs.xml +++ b/doc/reference_lrs.xml @@ -52,7 +52,7 @@ --Return point 20% along 2d line -SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.20)) +SELECT ST_AsEWKT(ST_LineInterpolatePoint(the_line, 0.20)) FROM (SELECT ST_GeomFromEWKT('LINESTRING(25 50, 100 125, 150 190)') as the_line) As foo; st_asewkt ---------------- @@ -61,7 +61,7 @@ SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.20)) --Return point mid-way of 3d line -SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5)) +SELECT ST_AsEWKT(ST_LineInterpolatePoint(the_line, 0.5)) FROM (SELECT ST_GeomFromEWKT('LINESTRING(1 2 3, 4 5 6, 6 7 8)') as the_line) As foo; st_asewkt @@ -70,7 +70,7 @@ SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5)) --find closest point on a line to a point or other geometry - SELECT ST_AsText(ST_Line_Interpolate_Point(foo.the_line, ST_Line_Locate_Point(foo.the_line, ST_GeomFromText('POINT(4 3)')))) + SELECT ST_AsText(ST_LineInterpolatePoint(foo.the_line, ST_LineLocatePoint(foo.the_line, ST_GeomFromText('POINT(4 3)')))) FROM (SELECT ST_GeomFromText('LINESTRING(1 2, 4 5, 6 7)') As the_line) As foo; st_astext ---------------- @@ -151,7 +151,7 @@ WHERE ST_DWithin(street_line, house_loc, 0.2); POINT(3.03 4.12) | 20 --find closest point on a line to a point or other geometry - SELECT ST_AsText(ST_Line_Interpolate_Point(foo.the_line, ST_LineLocatePoint(foo.the_line, ST_GeomFromText('POINT(4 3)')))) + SELECT ST_AsText(ST_LineInterpolatePoint(foo.the_line, ST_LineLocatePoint(foo.the_line, ST_GeomFromText('POINT(4 3)')))) FROM (SELECT ST_GeomFromText('LINESTRING(1 2, 4 5, 6 7)') As the_line) As foo; st_astext ----------------