]> granicus.if.org Git - postgis/commitdiff
Add example for ST_AddMeasure on multilinestring
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 26 Jan 2010 19:08:19 +0000 (19:08 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 26 Jan 2010 19:08:19 +0000 (19:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5169 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_lrs.xml

index c7ad4ded4e2db5db4e96f7b7668d04bcc1445857..b8964834498bfb9bd8843ab9d21ab5be97103611 100644 (file)
@@ -528,6 +528,12 @@ ST_GeomFromEWKT('LINESTRINGM(1 0 4, 2 0 4, 4 0 4)'),10,40)) As ewelev;
                  ewelev                 
 ----------------------------------------
  LINESTRINGM(1 0 10,2 0 20,4 0 40)
+SELECT ST_AsEWKT(ST_AddMeasure(
+ST_GeomFromEWKT('MULTILINESTRINGM((1 0 4, 2 0 4, 4 0 4),(1 0 4, 2 0 4, 4 0 4))'),10,70)) As ewelev;
+                             ewelev                              
+-----------------------------------------------------------------
+ MULTILINESTRINGM((1 0 10,2 0 20,4 0 40),(1 0 40,2 0 50,4 0 70))
 </programlisting>
          </refsection>