]> granicus.if.org Git - postgis/commitdiff
Added ExteriorRing and Segmentize tests
authorSandro Santilli <strk@keybit.net>
Mon, 28 Nov 2005 11:04:17 +0000 (11:04 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 28 Nov 2005 11:04:17 +0000 (11:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2079 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress.sql
regress/regress_expected
regress/regress_ogc.sql
regress/regress_ogc_expected

index 53f6993f2fea50d6d7aac68e828712a37fc3cc8d..440bc3ead56a80abdce0786d389f27b39356cc49 100644 (file)
@@ -248,7 +248,9 @@ select '145', asewkt(force_3dz('POINTM(1 2 3)'));
 select '146', asewkt(force_4d('POINTM(1 2 3)'));
 select '147', asewkt(force_4d('POINT(1 2 3)'));
 
-select '144', asewkt(linemerge('GEOMETRYCOLLECTION(LINESTRING(0 0, 1 1), LINESTRING(4 4, 1 1), LINESTRING(-5 -5, 0 0))'::geometry));
+select '148', astext(segmentize('LINESTRING(0 0, 10 0)', 5));
+
+select '149', asewkt(linemerge('GEOMETRYCOLLECTION(LINESTRING(0 0, 1 1), LINESTRING(4 4, 1 1), LINESTRING(-5 -5, 0 0))'::geometry));
 
 -- Drop test table
 DROP table test;
index 6c6952a87e85c913a4cc0912245cca1408032ee0..269700062c932e296cb8d28a211200498511d58e 100644 (file)
@@ -152,5 +152,6 @@ ERROR:  LWGEOM2GEOS: exception during polygon shell conversion
 145|POINT(1 2 0)
 146|POINT(1 2 0 3)
 147|POINT(1 2 3 0)
-144|LINESTRING(-5 -5,0 0,1 1,4 4)
+148|LINESTRING(0 0,5 0,10 0)
+149|LINESTRING(-5 -5,0 0,1 1,4 4)
 DROP TABLE
index 6dc634291e93cc44b8af8d43defd1b2c4fe2da7b..cf83fcdb9feb0230a51738d408cb99d4cfc59b9c 100644 (file)
@@ -28,4 +28,5 @@ SELECT 'issimple', issimple('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0),(2 2, 2 4, 4
 SELECT 'equals', equals('LINESTRING(0 0, 1 1)', 'LINESTRING(1 1, 0 0)');
 SELECT 'pointonsurface', astext(pointonsurface('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0),(2 2, 2 4, 4 4, 4 2, 2 2))'));
 SELECT 'centroid', astext(centroid('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0),(2 2, 2 4, 4 4, 4 2, 2 2))'));
+SELECT 'exteriorring', astext(exteriorring(PolygonFromText('POLYGON((52 18,66 23,73 9,48 6,52 18),(59 18,67 18,67 13,59 13,59 18))')));
 
index a313d7b37d2b66c15d3c7c146099adcceab2affe..dd1e948fb9d0c7e5d13d836ee0766eeea4006e45 100644 (file)
@@ -29,3 +29,4 @@ issimple|t
 equals|t
 pointonsurface|POINT(5 5)
 centroid|POINT(5.08333333333333 5.08333333333333)
+exteriorring|LINESTRING(52 18,66 23,73 9,48 6,52 18)