]> granicus.if.org Git - postgis/commitdiff
Provide example of ST_SetPoint
authorRegina Obe <lr@pcorp.us>
Sun, 7 Sep 2008 09:07:08 +0000 (09:07 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 7 Sep 2008 09:07:08 +0000 (09:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2943 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_new.xml

index 16e41263c082cff6e94b375e62b14867e1899b46..142a15c11635fb8d22ca962b92ec5d866fd76019 100644 (file)
@@ -2466,7 +2466,11 @@ LINESTRING(1 2,1 10) | LINESTRING(1 10,1 2)
                  <refsection>
                        <title>Examples</title> 
                        <programlisting>
-<!-- TODO: Provide ST_SetPoint Example -->
+--Change second point in line string from -1 3 to -1 1
+SELECT ST_AsText(ST_SetPoint('LINESTRING(-1 2,-1 3)', 1, 'POINT(-1 1)'));
+       st_astext
+-----------------------
+ LINESTRING(-1 2,-1 1)
                        </programlisting>
                  </refsection>
                  <refsection>