]> granicus.if.org Git - postgis/commitdiff
fix spacing of st_linemerge, st_segmentize examples.
authorRegina Obe <lr@pcorp.us>
Wed, 15 Oct 2008 13:43:59 +0000 (13:43 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 15 Oct 2008 13:43:59 +0000 (13:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3112 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_new.xml

index d8c40134f72e80cd823b9870cb1da6fd8bd6b75c..64cf281e19706c90116f5e6ddf239691af024eea 100644 (file)
@@ -2543,18 +2543,19 @@ Line[ZB] with 2 points : Polygon[ZB] with 1 rings
 ST_GeomFromText('MULTILINESTRING((-29 -27,-30 -29.7,-36 -31,-45 -33),(-45 -33,-46 -32))')
                )
 );
-                       st_astext
-                       --------------------------------------------------------------------------------------------------
-                       LINESTRING(-29 -27,-30 -29.7,-36 -31,-45 -33,-46 -32)
-                       (1 row)
-       --If can't be merged - original MULTILINESTRING is returned             
-                       SELECT ST_AsText(ST_LineMerge(
-               ST_GeomFromText('MULTILINESTRING((-29 -27,-30 -29.7,-36 -31,-45 -33),(-45.2 -33.2,-46 -32))')
-                       )
-               );
-               st_astext
-               ----------------
-               MULTILINESTRING((-45.2 -33.2,-46 -32),(-29 -27,-30 -29.7,-36 -31,-45 -33))
+st_astext
+--------------------------------------------------------------------------------------------------
+LINESTRING(-29 -27,-30 -29.7,-36 -31,-45 -33,-46 -32)
+(1 row)
+
+--If can't be merged - original MULTILINESTRING is returned            
+SELECT ST_AsText(ST_LineMerge(
+ST_GeomFromText('MULTILINESTRING((-29 -27,-30 -29.7,-36 -31,-45 -33),(-45.2 -33.2,-46 -32))')
+)
+);
+st_astext
+----------------
+MULTILINESTRING((-45.2 -33.2,-46 -32),(-29 -27,-30 -29.7,-36 -31,-45 -33))
                        </programlisting>
                </refsection>
                <refsection>
@@ -2718,18 +2719,18 @@ LINESTRING(1 2,1 10) | LINESTRING(1 10,1 2)
 ST_GeomFromText('MULTILINESTRING((-29 -27,-30 -29.7,-36 -31,-45 -33),(-45 -33,-46 -32))')
                ,5)
 );
-                       st_astext
-                       --------------------------------------------------------------------------------------------------
-                       MULTILINESTRING((-29 -27,-30 -29.7,-34.886615700134 -30.758766735029,-36 -31,
-                       -40.8809353009198 -32.0846522890933,-45 -33),
-                       (-45 -33,-46 -32))
-                       (1 row)
+st_astext
+--------------------------------------------------------------------------------------------------
+MULTILINESTRING((-29 -27,-30 -29.7,-34.886615700134 -30.758766735029,-36 -31,
+-40.8809353009198 -32.0846522890933,-45 -33),
+(-45 -33,-46 -32))
+(1 row)
                        
-                       SELECT ST_AsText(ST_Segmentize(ST_GeomFromText('POLYGON((-29 28, -30 40, -29 28))'),10));
-                       st_astext
-                       -----------------------
-                       POLYGON((-29 28,-29.8304547985374 37.9654575824488,-30 40,-29.1695452014626 30.0345424175512,-29 28))
-                       (1 row)
+SELECT ST_AsText(ST_Segmentize(ST_GeomFromText('POLYGON((-29 28, -30 40, -29 28))'),10));
+st_astext
+-----------------------
+POLYGON((-29 28,-29.8304547985374 37.9654575824488,-30 40,-29.1695452014626 30.0345424175512,-29 28))
+(1 row)
        
                        </programlisting>
                </refsection>