]> granicus.if.org Git - postgis/commitdiff
figure of st_line_interpolate_point
authorRegina Obe <lr@pcorp.us>
Thu, 10 Sep 2009 04:03:56 +0000 (04:03 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 10 Sep 2009 04:03:56 +0000 (04:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4467 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/image_src/Makefile.in
doc/html/image_src/st_line_interpolate_point01.wkt [new file with mode: 0644]
doc/reference.xml

index a2c2c209e00130cc4534353a5dca27a073ad5e5f..cd3c1c6996d92d2b79996664766afa4204b0426e 100644 (file)
@@ -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 (file)
index 0000000..1eefda4
--- /dev/null
@@ -0,0 +1,2 @@
+Style2;LINESTRING(25 50, 100 125, 150 190)
+Style1-thinline;POINT(51.5974135047432 76.5974135047432)
index 32aad235ddd3bbf141f55434195d5248106f57d4..5d8e792e459f14a875fedb1ba78f8e01856640ee 100644 (file)
@@ -13428,15 +13428,23 @@ MULTILINESTRING((3 4,4 5),(1 2,3 4))
 
                  <refsection>
                        <title>Examples</title>
-
-                       <programlisting>--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;
+                       <informalfigure>
+                         <mediaobject>
+                               <imageobject>
+                                 <imagedata fileref="images/st_line_interpolate_point01.png" />
+                               </imageobject>
+                               <caption><para>A linestring with the interpolated point at 20% position (0.20) </para></caption>
+                         </mediaobject>
+                       </informalfigure>
+                       <programlisting>--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)
 
+</programlisting>
+<programlisting>
 --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;