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>
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>