From: Regina Obe Date: Thu, 10 Sep 2009 04:03:56 +0000 (+0000) Subject: figure of st_line_interpolate_point X-Git-Tag: 1.5.0b1~530 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93c5955b34d51cd56bce0bfc33898a02ebc9b33d;p=postgis figure of st_line_interpolate_point git-svn-id: http://svn.osgeo.org/postgis/trunk@4467 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/image_src/Makefile.in b/doc/html/image_src/Makefile.in index a2c2c209e..cd3c1c699 100644 --- a/doc/html/image_src/Makefile.in +++ b/doc/html/image_src/Makefile.in @@ -58,6 +58,7 @@ IMAGES= \ ../images/st_isvalid06.png \ ../images/st_isvalid07.png \ ../images/st_isvalid08.png \ + ../images/st_line_interpolate_point01.png \ ../images/st_minimumboundingcircle01.png \ ../images/st_symdifference01.png \ ../images/st_symdifference02.png \ diff --git a/doc/html/image_src/st_line_interpolate_point01.wkt b/doc/html/image_src/st_line_interpolate_point01.wkt new file mode 100644 index 000000000..1eefda410 --- /dev/null +++ b/doc/html/image_src/st_line_interpolate_point01.wkt @@ -0,0 +1,2 @@ +Style2;LINESTRING(25 50, 100 125, 150 190) +Style1-thinline;POINT(51.5974135047432 76.5974135047432) diff --git a/doc/reference.xml b/doc/reference.xml index 32aad235d..5d8e792e4 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -13428,15 +13428,23 @@ MULTILINESTRING((3 4,4 5),(1 2,3 4)) Examples - - --Return point mid-way of 2d line -SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5)) - FROM (SELECT ST_GeomFromEWKT('LINESTRING(1 2, 4 5, 6 7)') as the_line) As foo; + + + + + + A linestring with the interpolated point at 20% position (0.20) + + + --Return point 20% along 2d line +SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.20)) + FROM (SELECT ST_GeomFromEWKT('LINESTRING(25 50, 100 125, 150 190)') as the_line) As foo; st_asewkt ---------------- - POINT(3.5 4.5) - + POINT(51.5974135047432 76.5974135047432) + + --Return point mid-way of 3d line SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5)) FROM (SELECT ST_GeomFromEWKT('LINESTRING(1 2 3, 4 5 6, 6 7 8)') as the_line) As foo;