]> granicus.if.org Git - postgis/commitdiff
Added linemerge test
authorSandro Santilli <strk@keybit.net>
Fri, 11 Nov 2005 17:02:31 +0000 (17:02 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 11 Nov 2005 17:02:31 +0000 (17:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2026 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress.sql
regress/regress_expected

index f69c120ab51745510a880429699680f3555d55fa..9ed6f2bd303ffdeb09479ad4f9e984115df87820 100644 (file)
@@ -237,3 +237,5 @@ select '140', asewkt(multi(setsrid('POINT(2 2)'::geometry, 3)));
 select '141', asewkt(multi(setsrid('LINESTRING(2 2, 3 3)'::geometry, 4)));
 select '142', asewkt(multi(setsrid('LINESTRING(2 2, 3 3)'::geometry, 5)));
 select '143', asewkt(multi(setsrid('POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))'::geometry, 6)));
+
+select '144', asewkt(linemerge('GEOMETRYCOLLECTION(LINESTRING(0 0, 1 1), LINESTRING(4 4, 1 1), LINESTRING(-5 -5, 0 0))'::geometry));
index 61e77f03f9c34264221dee69da1bb0578cbe2c55..42e899c1450bd3803946c0a7e5ae375b13e36e87 100644 (file)
@@ -143,3 +143,4 @@ ERROR:  POSTGIS2GEOS conversion failed
 141|SRID=4;MULTILINESTRING((2 2,3 3))
 142|SRID=5;MULTILINESTRING((2 2,3 3))
 143|SRID=6;MULTIPOLYGON(((0 0,1 0,1 1,0 1,0 0)))
+144|LINESTRING(-5 -5,0 0,1 1,4 4)