From: Regina Obe Date: Wed, 15 Oct 2008 13:43:59 +0000 (+0000) Subject: fix spacing of st_linemerge, st_segmentize examples. X-Git-Tag: 1.4.0b1~621 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=151db5b76a233ee3a0235ac34e87fa42e183e220;p=postgis fix spacing of st_linemerge, st_segmentize examples. git-svn-id: http://svn.osgeo.org/postgis/trunk@3112 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_new.xml b/doc/reference_new.xml index d8c40134f..64cf281e1 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -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)) @@ -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)