]> granicus.if.org Git - postgis/commitdiff
Added regression tests for OGC conformant multiPoint parsing, updated CHANGELOG
authorMarkus Schaber <markus@schabi.de>
Wed, 3 May 2006 08:30:25 +0000 (08:30 +0000)
committerMarkus Schaber <markus@schabi.de>
Wed, 3 May 2006 08:30:25 +0000 (08:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2340 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
jdbc2/src/examples/TestParser.java

diff --git a/CHANGES b/CHANGES
index 71fcf63e9a80b7d8aa9b7d45c147f7d60be899ce..018c725e111bdea2cd1a2e5bda567555e3bc8240 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,7 @@ PostGIS 1.1.3CVS
          EMPTY elements (still supported for GEOMETRYCOLLECTION).
        - Added --with-proj-libdir and --with-geos-libdir configure
          switches
+       - Improved JDBC regression tests: MultiPoint and scientific ordinates
 
 PostGIS 1.1.2
 2006/03/30
index a840137a385f59a8404e3c111d6145871511737b..8fab72190d4747a757446c37ba62fe5d510549ee 100644 (file)
@@ -68,17 +68,29 @@ public class TestParser {
             ONLY10, // 3D + Measures
             "POINT(10 10 20 30)"},
         {
-            ALL,
+            ALL, // broken format, see http://lists.jump-project.org/pipermail/jts-devel/2006-April/001572.html
             "MULTIPOINT(11 12, 20 20)"},
         {
-            ALL,
+            ALL,// broken format
             "MULTIPOINT(11 12 13, 20 20 20)"},
         {
-            ONLY10,
+            ONLY10,// broken format
             "MULTIPOINTM(11 12 13, 20 20 20)"},
         {
-            ONLY10,
+            ONLY10,// broken format
             "MULTIPOINT(11 12 13 14,20 20 20 20)"},
+        {
+            ALL, // OGC conforming format
+            "MULTIPOINT((11 12), (20 20))"},
+        {
+            ALL,
+            "MULTIPOINT((11 12 13), (20 20 20))"},
+        {
+            ONLY10,
+            "MULTIPOINTM((11 12 13), (20 20 20))"},
+        {
+            ONLY10,
+            "MULTIPOINT((11 12 13 14),(20 20 20 20))"},            
         {
             ALL,
             "LINESTRING(10 10,20 20,50 50,34 34)"},
@@ -146,8 +158,11 @@ public class TestParser {
             ALL,
             "GEOMETRYCOLLECTION(POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},
         {
-            ONLY10, // Cannot be parsed by 0.X servers
+            ONLY10, // Cannot be parsed by 0.X servers, broken format
             "GEOMETRYCOLLECTION(MULTIPOINT(10 10 10, 20 20 20),MULTIPOINT(10 10 10, 20 20 20))"},
+        {
+            ONLY10, // Cannot be parsed by 0.X servers, OGC conformant
+            "GEOMETRYCOLLECTION(MULTIPOINT((10 10 10), (20 20 20)),MULTIPOINT((10 10 10), (20 20 20)))"},
         {
             EQUAL10, // PostGIs 0.X "flattens" this geometry, so it is not
             // equal after reparsing.
@@ -161,8 +176,12 @@ public class TestParser {
             "GEOMETRYCOLLECTION(POINT(10 10 20),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},
         {
             ONLY10, // Collections that contain both X and MultiX do not work on
-            // PostGIS 0.x
+            // PostGIS 0.x, broken format
             "GEOMETRYCOLLECTION(POINT(10 10 20),MULTIPOINT(10 10 10, 20 20 20),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))),MULTILINESTRING((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},
+        {
+            ONLY10, // Collections that contain both X and MultiX do not work on
+            // PostGIS 0.x, OGC conformant
+            "GEOMETRYCOLLECTION(POINT(10 10 20),MULTIPOINT((10 10 10), (20 20 20)),LINESTRING(10 10 20,20 20 20, 50 50 50, 34 34 34),POLYGON((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),MULTIPOLYGON(((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)),((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0))),MULTILINESTRING((10 10 0,20 10 0,20 20 0,20 10 0,10 10 0),(5 5 0,5 6 0,6 6 0,6 5 0,5 5 0)))"},
         {
             ALL, // Old (bad) PostGIS 0.X Representation
             "GEOMETRYCOLLECTION(EMPTY)"},