From: Sandro Santilli Date: Fri, 26 Nov 2004 15:50:05 +0000 (+0000) Subject: Finished cleanup of main regression test. X-Git-Tag: pgis_1_0_0RC1~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d523eb977327943206d294974c1ce3238ac6fd8d;p=postgis Finished cleanup of main regression test. git-svn-id: http://svn.osgeo.org/postgis/trunk@1115 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/regress.sql b/regress/regress.sql index 8863a75ac..4f6490913 100644 --- a/regress/regress.sql +++ b/regress/regress.sql @@ -8,220 +8,213 @@ --- basic datatypes (correct) -select astext('POINT( 1 2 )'::GEOMETRY) as geom; -select astext('POINT( 1 2 3)'::GEOMETRY) as geom; - -select astext('LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4)'::GEOMETRY) as geom; -select astext('LINESTRING( 0 0 0 , 1 1 1 , 2 2 2 , 3 3 3, 4 4 4)'::GEOMETRY) as geom; -select astext('LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15)'::GEOMETRY) as geom; - -select astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0) )'::GEOMETRY) as geom; -select astext('POLYGON( (0 0 1 , 10 0 1, 10 10 1, 0 10 1, 0 0 1) )'::GEOMETRY) as geom; -select astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) )'::GEOMETRY) as geom; -select astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) )'::GEOMETRY) as geom; -select astext('POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1 , 5 7 1, 5 5 1) )'::GEOMETRY) as geom; -select astext('POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) )'::GEOMETRY) as geom; - -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 3))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1 , 5 7 1, 5 5 1) ))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ),POINT( 1 2 3) )'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4),POINT( 1 2 3) )'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ),LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4) )'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ),POINT( 1 2 3),LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15) )'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ),POINT( 1 2 3),LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15),POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0) ) )'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ),POINT( 1 2 3),POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY); - -select astext('MULTIPOINT( 1 2)'::GEOMETRY) as geom; -select astext('MULTIPOINT( 1 2 3)'::GEOMETRY) as geom; -select astext('MULTIPOINT( 1 2, 3 4, 5 6)'::GEOMETRY) as geom; -select astext('MULTIPOINT( 1 2 3, 5 6 7, 8 9 10, 11 12 13)'::GEOMETRY) as geom; -select astext('MULTIPOINT( 1 2, 1 2 3, 4 5, 6 7 8)'::GEOMETRY) as geom; -select astext('MULTIPOINT( 1 2 3,4 5)'::GEOMETRY) as geom; - -select astext('MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4) )'::GEOMETRY) as geom; -select astext('MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4),(0 0, 1 1, 2 2, 3 3 , 4 4))'::GEOMETRY) as geom; -select astext('MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4),(0 0, 1 1, 2 2, 3 3 , 4 4),(1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15) )'::GEOMETRY) as geom; -select astext('MULTILINESTRING( (1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15),(0 0, 1 1, 2 2, 3 3 , 4 4),(0 0, 1 1, 2 2, 3 3 , 4 4))'::GEOMETRY) as geom; - -select astext('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)) )'::GEOMETRY) as geom; -select astext('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) )'::GEOMETRY) as geom; -select astext('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as geom; - - -select astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2 3))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2 3, 5 6 7, 8 9 10, 11 12 13))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4) ))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTILINESTRING( (1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15),(0 0, 1 1, 2 2, 3 3 , 4 4),(0 0, 1 1, 2 2, 3 3 , 4 4)))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) ))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 ),MULTIPOINT( 1 2 3))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2, 3 4, 5 6),POINT( 1 2 3))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 3),MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4) ))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4) ),POINT( 1 2 3))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(POINT( 1 2 3), MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) ))'::GEOMETRY); -select astext('GEOMETRYCOLLECTION(MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) ),MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4),(0 0, 1 1, 2 2, 3 3 , 4 4),(1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15) ),MULTIPOINT( 1 2 3, 5 6 7, 8 9 10, 11 12 13))'::GEOMETRY); - -select astext('MULTIPOINT( -1 -2 -3, 5.4 6.6 7.77, -5.4 -6.6 -7.77, 1e6 1e-6 -1e6, -1.3e-6 -1.4e-5)'::GEOMETRY) as geom; - -select astext('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(1 1) ))'::GEOMETRY) as geom; +select '1',astext('POINT( 1 2 )'::GEOMETRY) as geom; +select '2',astext('POINT( 1 2 3)'::GEOMETRY) as geom; + +select '3',astext('LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4)'::GEOMETRY) as geom; +select '4',astext('LINESTRING( 0 0 0 , 1 1 1 , 2 2 2 , 3 3 3, 4 4 4)'::GEOMETRY) as geom; +select '5',astext('LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15)'::GEOMETRY) as geom; + +select '6',astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0) )'::GEOMETRY) as geom; +select '7',astext('POLYGON( (0 0 1 , 10 0 1, 10 10 1, 0 10 1, 0 0 1) )'::GEOMETRY) as geom; +select '8',astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) )'::GEOMETRY) as geom; +select '9',astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) )'::GEOMETRY) as geom; +select '10',astext('POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1 , 5 7 1, 5 5 1) )'::GEOMETRY) as geom; +select '11',astext('POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) )'::GEOMETRY) as geom; + +select '12',astext('GEOMETRYCOLLECTION(POINT( 1 2 ))'::GEOMETRY); +select '13',astext('GEOMETRYCOLLECTION(POINT( 1 2 3))'::GEOMETRY); +select '14',astext('GEOMETRYCOLLECTION(LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4))'::GEOMETRY); +select '15',astext('GEOMETRYCOLLECTION(LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15))'::GEOMETRY); +select '16',astext('GEOMETRYCOLLECTION(POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1 , 5 7 1, 5 5 1) ))'::GEOMETRY); +select '17',astext('GEOMETRYCOLLECTION(POINT( 1 2 0),POINT( 1 2 3) )'::GEOMETRY); +select '18',astext('GEOMETRYCOLLECTION(LINESTRING( 0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),POINT( 1 2 3) )'::GEOMETRY); +select '19',astext('GEOMETRYCOLLECTION(POINT( 1 2 ),LINESTRING( 0 0, 1 1, 2 2, 3 3 , 4 4) )'::GEOMETRY); +select '20',astext('GEOMETRYCOLLECTION(POINT( 1 2 0 ),POINT( 1 2 3),LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15) )'::GEOMETRY); +select '21',astext('GEOMETRYCOLLECTION(POINT( 1 2 0 ),POINT( 1 2 3),LINESTRING( 1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15),POLYGON( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0) ) )'::GEOMETRY); +select '22',astext('GEOMETRYCOLLECTION(POINT( 1 2 0),POINT( 1 2 3),POLYGON( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY); + +select '23',astext('MULTIPOINT( 1 2)'::GEOMETRY) as geom; +select '24',astext('MULTIPOINT( 1 2 3)'::GEOMETRY) as geom; +select '25',astext('MULTIPOINT( 1 2, 3 4, 5 6)'::GEOMETRY) as geom; +select '26',astext('MULTIPOINT( 1 2 3, 5 6 7, 8 9 10, 11 12 13)'::GEOMETRY) as geom; +select '27',astext('MULTIPOINT( 1 2 0, 1 2 3, 4 5 0, 6 7 8)'::GEOMETRY) as geom; +select '28',astext('MULTIPOINT( 1 2 3,4 5 0)'::GEOMETRY) as geom; + +select '29',astext('MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4) )'::GEOMETRY) as geom; +select '30',astext('MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4),(0 0, 1 1, 2 2, 3 3 , 4 4))'::GEOMETRY) as geom; +select '31',astext('MULTILINESTRING( (0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),(0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),(1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15) )'::GEOMETRY) as geom; +select '32',astext('MULTILINESTRING( (1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15),(0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),(0 0 0, 1 1 0, 2 2 0, 3 3 0 , 4 4 0))'::GEOMETRY) as geom; + +select '33',astext('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)) )'::GEOMETRY) as geom; +select '34',astext('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) )'::GEOMETRY) as geom; +select '35',astext('MULTIPOLYGON( ((0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0)),( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0),(5 5 0, 7 5 0, 7 7 0, 5 7 0, 5 5 0) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as geom; + + +select '36',astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2))'::GEOMETRY); +select '37',astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2 3))'::GEOMETRY); +select '38',astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2 3, 5 6 7, 8 9 10, 11 12 13))'::GEOMETRY); +select '39',astext('GEOMETRYCOLLECTION(MULTILINESTRING( (0 0, 1 1, 2 2, 3 3 , 4 4) ))'::GEOMETRY); +select '40',astext('GEOMETRYCOLLECTION(MULTILINESTRING( (1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15),(0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),(0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0)))'::GEOMETRY); +select '41',astext('GEOMETRYCOLLECTION(MULTIPOLYGON( ((0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0)),( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0),(5 5 0, 7 5 0, 7 7 0, 5 7 0, 5 5 0) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) ))'::GEOMETRY); +select '42',astext('GEOMETRYCOLLECTION(POINT( 1 2 0),MULTIPOINT( 1 2 3))'::GEOMETRY); +select '43',astext('GEOMETRYCOLLECTION(MULTIPOINT( 1 2 0, 3 4 0, 5 6 0),POINT( 1 2 3))'::GEOMETRY); +select '44',astext('GEOMETRYCOLLECTION(POINT( 1 2 3),MULTILINESTRING( (0 0 0, 1 1 0, 2 2 0, 3 3 0 , 4 4 0) ))'::GEOMETRY); +select '45',astext('GEOMETRYCOLLECTION(MULTILINESTRING( (0 0 0, 1 1 0, 2 2 0, 3 3 0 , 4 4 0) ),POINT( 1 2 3))'::GEOMETRY); +select '46',astext('GEOMETRYCOLLECTION(POINT( 1 2 3), MULTIPOLYGON( ((0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0)),( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0),(5 5 0, 7 5 0, 7 7 0, 5 7 0, 5 5 0) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) ))'::GEOMETRY); +select '47',astext('GEOMETRYCOLLECTION(MULTIPOLYGON( ((0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0)),( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0),(5 5 0, 7 5 0, 7 7 0, 5 7 0, 5 5 0) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) ),MULTILINESTRING( (0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),(0 0 0, 1 1 0, 2 2 0, 3 3 0, 4 4 0),(1 2 3 , 4 5 6 , 7 8 9 , 10 11 12, 13 14 15) ),MULTIPOINT( 1 2 3, 5 6 7, 8 9 10, 11 12 13))'::GEOMETRY); + +select '48',astext('MULTIPOINT( -1 -2 -3, 5.4 6.6 7.77, -5.4 -6.6 -7.77, 1e6 1e-6 -1e6, -1.3e-6 -1.4e-5 0)'::GEOMETRY) as geom; + +select '49', astext('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(1 1) ))'::GEOMETRY) as geom; --- basic datatype (incorrect) -select 'POINT()'::GEOMETRY as geom; -select 'POINT(1)'::GEOMETRY as geom; -select 'POINT(,)'::GEOMETRY as geom; -select 'MULTIPOINT(,)'::GEOMETRY as geom; -select 'POINT(a b)'::GEOMETRY as geom; -select 'MULTIPOINT()'::GEOMETRY as geom; -select astext('POLYGON( (0 0, 10 0, 10 10, 0 10) )'::GEOMETRY); -select astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7) )'::GEOMETRY); -select astext('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2,) )'::GEOMETRY); +select '50', 'POINT()'::GEOMETRY as geom; +select '51', 'POINT(1)'::GEOMETRY as geom; +select '52', 'POINT(,)'::GEOMETRY as geom; +select '53', 'MULTIPOINT(,)'::GEOMETRY as geom; +select '54', 'POINT(a b)'::GEOMETRY as geom; +select '55', 'MULTIPOINT()'::GEOMETRY as geom; +select '56', astext('POLYGON( (0 0, 10 0, 10 10, 0 10) )'::GEOMETRY); +select '57', astext('POLYGON( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7) )'::GEOMETRY); +select '58', astext('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2,) )'::GEOMETRY); --- funny results -select astext('POINT(1 2 3, 4 5 6)'::GEOMETRY); -select astext('POINT(1 2 3 4 5 6 7)'::GEOMETRY); -select astext('LINESTRING(1 1)'::GEOMETRY); -select astext('POINT( 1e700 0)'::GEOMETRY); -select astext('POINT( -1e700 0)'::GEOMETRY); -select astext('MULTIPOINT(1 1, 2 2'::GEOMETRY); +select '59',astext('POINT(1 2 3, 4 5 6)'::GEOMETRY); +select '60',astext('POINT(1 2 3 4 5 6 7)'::GEOMETRY); +select '61',astext('LINESTRING(1 1)'::GEOMETRY); +select '62',astext('POINT( 1e700 0)'::GEOMETRY); +select '63',astext('POINT( -1e700 0)'::GEOMETRY); +select '64',astext('MULTIPOINT(1 1, 2 2'::GEOMETRY); --- is_same() testing -select 'POINT(1 1)'::GEOMETRY ~= 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1 0)'::GEOMETRY ~= 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1 0)'::GEOMETRY ~= 'POINT(1 1 0)'::GEOMETRY as bool; +select '65','POINT(1 1)'::GEOMETRY ~= 'POINT(1 1)'::GEOMETRY as bool; +select '66','POINT(1 1 0)'::GEOMETRY ~= 'POINT(1 1)'::GEOMETRY as bool; +select '67','POINT(1 1 0)'::GEOMETRY ~= 'POINT(1 1 0)'::GEOMETRY as bool; -select 'MULTIPOINT(1 1,2 2)'::GEOMETRY ~= 'MULTIPOINT(1 1,2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(2 2, 1 1)'::GEOMETRY ~= 'MULTIPOINT(1 1,2 2)'::GEOMETRY as bool; +select '68','MULTIPOINT(1 1,2 2)'::GEOMETRY ~= 'MULTIPOINT(1 1,2 2)'::GEOMETRY as bool; +select '69','MULTIPOINT(2 2, 1 1)'::GEOMETRY ~= 'MULTIPOINT(1 1,2 2)'::GEOMETRY as bool; -select 'GEOMETRYCOLLECTION(POINT( 1 2 3),POINT(4 5 6)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(POINT( 4 5 6),POINT(1 2 3))'::GEOMETRY as bool; -select 'MULTIPOINT(4 5 6, 1 2 3)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(POINT( 4 5 6),POINT(1 2 3))'::GEOMETRY as bool; -select 'MULTIPOINT(1 2 3, 4 5 6)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(POINT( 4 5 6),POINT(1 2 3))'::GEOMETRY as bool; -select 'MULTIPOINT(1 2 3, 4 5 6)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(MULTIPOINT(1 2 3, 4 5 6))'::GEOMETRY as bool; +select '70','GEOMETRYCOLLECTION(POINT( 1 2 3),POINT(4 5 6))'::GEOMETRY ~= 'GEOMETRYCOLLECTION(POINT( 4 5 6),POINT(1 2 3))'::GEOMETRY as bool; +select '71','MULTIPOINT(4 5 6, 1 2 3)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(POINT( 4 5 6),POINT(1 2 3))'::GEOMETRY as bool; +select '72','MULTIPOINT(1 2 3, 4 5 6)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(POINT( 4 5 6),POINT(1 2 3))'::GEOMETRY as bool; +select '73','MULTIPOINT(1 2 3, 4 5 6)'::GEOMETRY ~= 'GEOMETRYCOLLECTION(MULTIPOINT(1 2 3, 4 5 6))'::GEOMETRY as bool; -select 'LINESTRING(1 1,2 2)'::GEOMETRY ~= 'POINT(1 1)'::GEOMETRY as bool; -select 'LINESTRING(1 1, 2 2)'::GEOMETRY ~= 'LINESTRING(2 2, 1 1)'::GEOMETRY as bool; -select 'LINESTRING(1 1, 2 2)'::GEOMETRY ~= 'LINESTRING(1 1, 2 2, 3 3)'::GEOMETRY as bool; +select '74','LINESTRING(1 1,2 2)'::GEOMETRY ~= 'POINT(1 1)'::GEOMETRY as bool; +select '75','LINESTRING(1 1, 2 2)'::GEOMETRY ~= 'LINESTRING(2 2, 1 1)'::GEOMETRY as bool; +select '76','LINESTRING(1 1, 2 2)'::GEOMETRY ~= 'LINESTRING(1 1, 2 2, 3 3)'::GEOMETRY as bool; --- operator testing (testing is on the BOUNDING BOX (2d), not the actual geometries) -select 'POINT(1 1)'::GEOMETRY &< 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY &< 'POINT(2 1)'::GEOMETRY as bool; -select 'POINT(2 1)'::GEOMETRY &< 'POINT(1 1)'::GEOMETRY as bool; +select '77','POINT(1 1)'::GEOMETRY &< 'POINT(1 1)'::GEOMETRY as bool; +select '78','POINT(1 1)'::GEOMETRY &< 'POINT(2 1)'::GEOMETRY as bool; +select '79','POINT(2 1)'::GEOMETRY &< 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY << 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY << 'POINT(2 1)'::GEOMETRY as bool; -select 'POINT(2 1)'::GEOMETRY << 'POINT(1 1)'::GEOMETRY as bool; +select '80','POINT(1 1)'::GEOMETRY << 'POINT(1 1)'::GEOMETRY as bool; +select '81','POINT(1 1)'::GEOMETRY << 'POINT(2 1)'::GEOMETRY as bool; +select '82','POINT(2 1)'::GEOMETRY << 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY &> 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY &> 'POINT(2 1)'::GEOMETRY as bool; -select 'POINT(2 1)'::GEOMETRY &> 'POINT(1 1)'::GEOMETRY as bool; +select '83','POINT(1 1)'::GEOMETRY &> 'POINT(1 1)'::GEOMETRY as bool; +select '84','POINT(1 1)'::GEOMETRY &> 'POINT(2 1)'::GEOMETRY as bool; +select '85','POINT(2 1)'::GEOMETRY &> 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY >> 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY >> 'POINT(2 1)'::GEOMETRY as bool; -select 'POINT(2 1)'::GEOMETRY >> 'POINT(1 1)'::GEOMETRY as bool; +select '86','POINT(1 1)'::GEOMETRY >> 'POINT(1 1)'::GEOMETRY as bool; +select '87','POINT(1 1)'::GEOMETRY >> 'POINT(2 1)'::GEOMETRY as bool; +select '88','POINT(2 1)'::GEOMETRY >> 'POINT(1 1)'::GEOMETRY as bool; -- overlap -select 'POINT(1 1)'::GEOMETRY && 'POINT(1 1)'::GEOMETRY as bool; -select 'POINT(1 1)'::GEOMETRY && 'POINT(2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1 1, 2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1.0001 1, 2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1 1.0001, 2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1 0, 2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1.0001 0, 2 2)'::GEOMETRY as bool; +select '89','POINT(1 1)'::GEOMETRY && 'POINT(1 1)'::GEOMETRY as bool; +select '90','POINT(1 1)'::GEOMETRY && 'POINT(2 2)'::GEOMETRY as bool; +select '91','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1 1, 2 2)'::GEOMETRY as bool; +select '92','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1.0001 1, 2 2)'::GEOMETRY as bool; +select '93','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1 1.0001, 2 2)'::GEOMETRY as bool; +select '94','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1 0, 2 2)'::GEOMETRY as bool; +select '95','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(1.0001 0, 2 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(0 1, 1 2)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(0 1.0001, 1 2)'::GEOMETRY as bool; +select '96','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(0 1, 1 2)'::GEOMETRY as bool; +select '97','MULTIPOINT(0 0, 1 1)'::GEOMETRY && 'MULTIPOINT(0 1.0001, 1 2)'::GEOMETRY as bool; ---- contained by +--- contains -select 'MULTIPOINT(0 0, 10 10)'::GEOMETRY ~ 'MULTIPOINT(5 5, 7 7)'::GEOMETRY as bool; -select 'MULTIPOINT(5 5, 7 7)'::GEOMETRY ~ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 7 7)'::GEOMETRY ~ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; -select 'MULTIPOINT(-0.0001 0, 7 7)'::GEOMETRY ~ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +select '98','MULTIPOINT(0 0, 10 10)'::GEOMETRY ~ 'MULTIPOINT(5 5, 7 7)'::GEOMETRY as bool; +select '99','MULTIPOINT(5 5, 7 7)'::GEOMETRY ~ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +select '100','MULTIPOINT(0 0, 7 7)'::GEOMETRY ~ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +select '101','MULTIPOINT(-0.0001 0, 7 7)'::GEOMETRY ~ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +--- contained by ---- contains -select 'MULTIPOINT(0 0, 10 10)'::GEOMETRY @ 'MULTIPOINT(5 5, 7 7)'::GEOMETRY as bool; -select 'MULTIPOINT(5 5, 7 7)'::GEOMETRY @ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; -select 'MULTIPOINT(0 0, 7 7)'::GEOMETRY @ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; -select 'MULTIPOINT(-0.0001 0, 7 7)'::GEOMETRY @ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +select '102','MULTIPOINT(0 0, 10 10)'::GEOMETRY @ 'MULTIPOINT(5 5, 7 7)'::GEOMETRY as bool; +select '103','MULTIPOINT(5 5, 7 7)'::GEOMETRY @ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +select '104','MULTIPOINT(0 0, 7 7)'::GEOMETRY @ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; +select '105','MULTIPOINT(-0.0001 0, 7 7)'::GEOMETRY @ 'MULTIPOINT(0 0, 10 10)'::GEOMETRY as bool; --- function testing --- conversion function -select box3d('MULTIPOINT(0 0, 7 7)'::GEOMETRY) as bvol; +select '106',box3d('MULTIPOINT(0 0, 7 7)'::GEOMETRY) as bvol; -- box3d only type is only used for indexing -- NEVER use one yourself -select geometry('BOX3D(0 0 0, 7 7 7 )'::BOX3D) as a_geom; +select '107',astext(geometry('BOX3D(0 0 0, 7 7 7 )'::BOX3D)); --- debug function testing -select npoints('MULTIPOINT(0 0, 7 7)'::GEOMETRY) as value; -select npoints('GEOMETRYCOLLECTION(POINT(1 1), LINESTRING( 1 1 , 2 2, 3 3))'::GEOMETRY) as value; +select '108',npoints('MULTIPOINT(0 0, 7 7)'::GEOMETRY) as value; +select '109',npoints('GEOMETRYCOLLECTION(POINT(1 1), LINESTRING( 1 1 , 2 2, 3 3))'::GEOMETRY) as value; -select nrings('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; +select '110', nrings('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7, 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) ) )'::GEOMETRY) as value; -select mem_size('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; +select '111', mem_size('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7, 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) ) )'::GEOMETRY) as value; -select numb_sub_objs('GEOMETRYCOLLECTION(POINT(1 1), LINESTRING( 1 1 , 2 2, 3 3),MULTIPOINT(1 1, 2 2))'::GEOMETRY) as value; - -select summary('GEOMETRYCOLLECTION(POINT(1 1), LINESTRING( 1 1 , 2 2, 3 3),MULTIPOINT(1 1, 2 2))'::GEOMETRY) as value; - +select '112',numgeometries('GEOMETRYCOLLECTION(POINT(1 1), LINESTRING( 1 1 , 2 2, 3 3),MULTIPOINT(1 1, 2 2))'::GEOMETRY) as value; --- geo ops -select area2d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; +select '113', area2d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7, 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) ) )'::GEOMETRY) as value; -select perimeter2d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; +select '114', perimeter2d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7, 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) ) )'::GEOMETRY) as value; -select perimeter3d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; +select '115', perimeter3d('MULTIPOLYGON( ((0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0)),( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0),(5 5 0, 7 5 0, 7 7 0, 5 7 0, 5 5 0) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; -select length2d('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2) )'::GEOMETRY) as value; -select length3d('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2) )'::GEOMETRY) as value; -select length3d('MULTILINESTRING((0 0 0, 1 1 1),(0 0 0, 1 1 1, 2 2 2) )'::GEOMETRY) as value; +select '116', length2d('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2) )'::GEOMETRY) as value; +select '117', length3d('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2) )'::GEOMETRY) as value; +select '118', length3d('MULTILINESTRING((0 0 0, 1 1 1),(0 0 0, 1 1 1, 2 2 2) )'::GEOMETRY) as value; ---selection -select truly_inside('LINESTRING(-1 -1, -1 101, 101 101, 101 -1)'::GEOMETRY,'BOX3D(0 0, 100 100)'::BOX3d) as value; -select truly_inside('LINESTRING(-1 -1, -1 100, 101 100, 101 -1)'::GEOMETRY,'BOX3D(0 0, 100 100)'::BOX3d) as value; +select '119', within('LINESTRING(-1 -1, -1 101, 101 101, 101 -1)'::GEOMETRY,'BOX3D(0 0, 100 100)'::BOX3D); +select '120', within('LINESTRING(-1 -1, -1 100, 101 100, 101 -1)'::GEOMETRY,'BOX3D(0 0, 100 100)'::BOX3D); --- TOAST testing -- create a table with data that will be TOASTed (even after compression) - -\set ECHO none create table TEST(a GEOMETRY, b GEOMETRY); \i regress_biginsert.sql -\set ECHO all ---test basic ops on this -select box3d(a) as box3d_a, box3d(b) as box3d_b from TEST; +select '121',box3d(a) as box3d_a, box3d(b) as box3d_b from TEST; -select a <>b from TEST; -select a &>b from TEST; +select '122',a <>b from TEST; +select '125',a &>b from TEST; -select a ~= b from TEST; -select a @ b from TEST; -select a ~ b from TEST; +select '126',a ~= b from TEST; +select '127',a @ b from TEST; +select '128',a ~ b from TEST; -select mem_size(a), mem_size(b) from TEST; +select '129', mem_size(a), mem_size(b) from TEST; -drop table TEST; diff --git a/regress/regress_expected b/regress/regress_expected index f50d48919..34adc5326 100644 --- a/regress/regress_expected +++ b/regress/regress_expected @@ -1,134 +1,130 @@ -POINT(1 2) -POINT(1 2 3) -LINESTRING(0 0,1 1,2 2,3 3,4 4) -LINESTRING(0 0 0,1 1 1,2 2 2,3 3 3,4 4 4) -LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15) -POLYGON((0 0,10 0,10 10,0 10,0 0)) -POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1)) -POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5)) -POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5),(1 1,2 1,2 2,1 2,1 1)) -POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1)) -POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1)) -GEOMETRYCOLLECTION(POINT(1 2)) -GEOMETRYCOLLECTION(POINT(1 2 3)) -GEOMETRYCOLLECTION(LINESTRING(0 0,1 1,2 2,3 3,4 4)) -GEOMETRYCOLLECTION(LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) -GEOMETRYCOLLECTION(POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1))) -GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3)) -GEOMETRYCOLLECTION(LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),POINT(1 2 3)) -GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(0 0,1 1,2 2,3 3,4 4)) -GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3),LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) -GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3),LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0))) -GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3),POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))) -MULTIPOINT(1 2) -MULTIPOINT(1 2 3) -MULTIPOINT(1 2,3 4,5 6) -MULTIPOINT(1 2 3,5 6 7,8 9 10,11 12 13) -MULTIPOINT(1 2 0,1 2 3,4 5 0,6 7 8) -MULTIPOINT(1 2 3,4 5 0) -MULTILINESTRING((0 0,1 1,2 2,3 3,4 4)) -MULTILINESTRING((0 0,1 1,2 2,3 3,4 4),(0 0,1 1,2 2,3 3,4 4)) -MULTILINESTRING((0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) -MULTILINESTRING((1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0)) -MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0))) -MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5))) -MULTIPOLYGON(((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))) -GEOMETRYCOLLECTION(POINT(1 2)) -GEOMETRYCOLLECTION(POINT(1 2 3)) -GEOMETRYCOLLECTION(POINT(1 2 3),POINT(5 6 7),POINT(8 9 10),POINT(11 12 13)) -GEOMETRYCOLLECTION(LINESTRING(0 0,1 1,2 2,3 3,4 4)) -GEOMETRYCOLLECTION(LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0)) -GEOMETRYCOLLECTION(POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))) -GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3)) -GEOMETRYCOLLECTION(POINT(1 2 0),POINT(3 4 0),POINT(5 6 0),POINT(1 2 3)) -GEOMETRYCOLLECTION(POINT(1 2 3),LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0)) -GEOMETRYCOLLECTION(LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),POINT(1 2 3)) -GEOMETRYCOLLECTION(POINT(1 2 3),POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))) -GEOMETRYCOLLECTION(POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1)),LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),POINT(1 2 3),POINT(5 6 7),POINT(8 9 10),POINT(11 12 13)) -MULTIPOINT(-1 -2 -3,5.4 6.6 7.77,-5.4 -6.6 -7.77,1000000 1e-06 -1000000,-1.3e-06 -1.4e-05 0) -GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(1 1))) -ERROR: couldnt parse object in GEOMETRY -ERROR: couldnt parse object in GEOMETRY -ERROR: couldnt parse object in GEOMETRY -ERROR: couldnt parse object in GEOMETRY -ERROR: couldnt parse object in GEOMETRY -ERROR: couldnt parse object in GEOMETRY +1|POINT(1 2) +2|POINT(1 2 3) +3|LINESTRING(0 0,1 1,2 2,3 3,4 4) +4|LINESTRING(0 0 0,1 1 1,2 2 2,3 3 3,4 4 4) +5|LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15) +6|POLYGON((0 0,10 0,10 10,0 10,0 0)) +7|POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1)) +8|POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5)) +9|POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5),(1 1,2 1,2 2,1 2,1 1)) +10|POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1)) +11|POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1)) +12|GEOMETRYCOLLECTION(POINT(1 2)) +13|GEOMETRYCOLLECTION(POINT(1 2 3)) +14|GEOMETRYCOLLECTION(LINESTRING(0 0,1 1,2 2,3 3,4 4)) +15|GEOMETRYCOLLECTION(LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) +16|GEOMETRYCOLLECTION(POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1))) +17|GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3)) +18|GEOMETRYCOLLECTION(LINESTRING(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),POINT(1 2 3)) +19|GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(0 0,1 1,2 2,3 3,4 4)) +20|GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3),LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) +21|GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3),LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),POLYGON((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0))) +22|GEOMETRYCOLLECTION(POINT(1 2 0),POINT(1 2 3),POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))) +23|MULTIPOINT(1 2) +24|MULTIPOINT(1 2 3) +25|MULTIPOINT(1 2,3 4,5 6) +26|MULTIPOINT(1 2 3,5 6 7,8 9 10,11 12 13) +27|MULTIPOINT(1 2 0,1 2 3,4 5 0,6 7 8) +28|MULTIPOINT(1 2 3,4 5 0) +29|MULTILINESTRING((0 0,1 1,2 2,3 3,4 4)) +30|MULTILINESTRING((0 0,1 1,2 2,3 3,4 4),(0 0,1 1,2 2,3 3,4 4)) +31|MULTILINESTRING((0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) +32|MULTILINESTRING((1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0)) +33|MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0))) +34|MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5))) +35|MULTIPOLYGON(((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))) +36|GEOMETRYCOLLECTION(MULTIPOINT(1 2)) +37|GEOMETRYCOLLECTION(MULTIPOINT(1 2 3)) +38|GEOMETRYCOLLECTION(MULTIPOINT(1 2 3,5 6 7,8 9 10,11 12 13)) +39|GEOMETRYCOLLECTION(MULTILINESTRING((0 0,1 1,2 2,3 3,4 4))) +40|GEOMETRYCOLLECTION(MULTILINESTRING((1 2 3,4 5 6,7 8 9,10 11 12,13 14 15),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0))) +41|GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1)))) +42|GEOMETRYCOLLECTION(POINT(1 2 0),MULTIPOINT(1 2 3)) +43|GEOMETRYCOLLECTION(MULTIPOINT(1 2 0,3 4 0,5 6 0),POINT(1 2 3)) +44|GEOMETRYCOLLECTION(POINT(1 2 3),MULTILINESTRING((0 0 0,1 1 0,2 2 0,3 3 0,4 4 0))) +45|GEOMETRYCOLLECTION(MULTILINESTRING((0 0 0,1 1 0,2 2 0,3 3 0,4 4 0)),POINT(1 2 3)) +46|GEOMETRYCOLLECTION(POINT(1 2 3),MULTIPOLYGON(((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1)))) +47|GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0)),((0 0 0,10 0 0,10 10 0,0 10 0,0 0 0),(5 5 0,7 5 0,7 7 0,5 7 0,5 5 0)),((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1))),MULTILINESTRING((0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(0 0 0,1 1 0,2 2 0,3 3 0,4 4 0),(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)),MULTIPOINT(1 2 3,5 6 7,8 9 10,11 12 13)) +48|MULTIPOINT(-1 -2 -3,5.4 6.6 7.77,-5.4 -6.6 -7.77,1000000 1e-06 -1000000,-1.3e-06 -1.4e-05 0) +49|GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(1 1))) +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry ERROR: polygon has ring where first point != last point ERROR: polygon has ring where first point != last point -ERROR: couldnt parse object in GEOMETRY -POINT(1 2 3) -POINT(1 2 3) -LINESTRING(1 1,1 1) -POINT(inf 0) -POINT(-inf 0) -MULTIPOINT(1 1,2 2) -t -t -t -t -t -t -t -t -t -f -f -f -t -t -f -f -t -f -t -f -t -f -f -t -t -f -t -f -f -t -f -t -f -f -t -t -f -t -f -f -f -BOX3D(0 0 0,7 7 0) -BOX3D ONLY - NOT useable -2 -4 -6 -884 -4 - Object 0 is a POINT() -Object 1 is a LINESTRING() with 3 points -Object 2 is a POINT() -Object 3 is a POINT() - -291 -140 -140 -4.24264 -4.24264 -5.19615 -f -t -BOX3D(1.19894826 1.20265412 0,999.932129 999.692932 0) | BOX3D(1.40486765 1.3484304 0,999.857666 999.936401 0) -f -f -f -f -f -f -f -72080 | 72080 +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry +ERROR: parse error - invalid geometry +ERROR: geometry requires more points +62|POINT(inf 0) +63|POINT(-inf 0) +ERROR: parse error - invalid geometry +65|t +66|t +67|t +68|t +69|t +70|t +71|t +72|t +73|t +74|f +75|f +76|f +77|t +78|t +79|f +80|f +81|t +82|f +83|t +84|f +85|t +86|f +87|f +88|t +89|t +90|f +91|t +92|f +93|f +94|t +95|f +96|t +97|f +98|t +99|f +100|f +101|f +102|f +103|t +104|t +105|f +106|BOX3D(0 0 0,7 7 0) +107|POLYGON((0 0,0 7,7 7,7 0,0 0)) +108|2 +109|4 +110|6 +111|528 +112|3 +113|291 +114|140 +115|140 +116|4.24264068711929 +117|4.24264068711929 +118|5.19615242270663 +119|f +120|t +CREATE TABLE +121|BOX3D(1.19894826 1.20265412 0,999.932129 999.692932 0)|BOX3D(1.40486765 1.3484304 0,999.857666 999.936401 0) +122|f +123|f +124|f +125|f +126|f +127|f +128|f +129|34009|34009 diff --git a/regress/regress_index_out b/regress/regress_index_out deleted file mode 100644 index 809b11185..000000000 --- a/regress/regress_index_out +++ /dev/null @@ -1,58 +0,0 @@ -You are now connected as new user postgres. -CREATE - ---- test some of the searching capabilities - --- GiST index - -CREATE INDEX quick_gist on test using gist (the_geom gist_geometry_ops) with (islossy); -CREATE - - select * from test where the_geom && 'BOX3D(125 125,135 135)'::box3d order by num; - num | the_geom -------+------------------------------ - 2594 | POINT(130.504303 126.53112) - 3618 | POINT(130.447205 131.655289) - 7245 | POINT(128.10466 130.94133) -(3 rows) - - -set enable_seqscan = off; -SET VARIABLE - - select * from test where the_geom && 'BOX3D(125 125,135 135)'::box3d order by num; - num | the_geom -------+------------------------------ - 2594 | POINT(130.504303 126.53112) - 3618 | POINT(130.447205 131.655289) - 7245 | POINT(128.10466 130.94133) -(3 rows) - - - ---- RTree (not recommended) - -CREATE INDEX quick_rt on test using rtree (the_geom rt_geometry_ops); -CREATE -set enable_seqscan = on; -SET VARIABLE - select * from test where the_geom && 'BOX3D(125 125,135 135)'::box3d order by num; - num | the_geom -------+------------------------------ - 2594 | POINT(130.504303 126.53112) - 3618 | POINT(130.447205 131.655289) - 7245 | POINT(128.10466 130.94133) -(3 rows) - -set enable_seqscan = off; -SET VARIABLE - select * from test where the_geom && 'BOX3D(125 125,135 135)'::box3d order by num; - num | the_geom -------+------------------------------ - 2594 | POINT(130.504303 126.53112) - 3618 | POINT(130.447205 131.655289) - 7245 | POINT(128.10466 130.94133) -(3 rows) - - - diff --git a/regress/regress_out b/regress/regress_out deleted file mode 100644 index a62e0af83..000000000 --- a/regress/regress_out +++ /dev/null @@ -1,161 +0,0 @@ -POINT(1 2) -POINT(1 2 3) -LINESTRING(0 0,1 1,2 2,3 3,4 4) -LINESTRING(0 0 0,1 1 1,2 2 2,3 3 3,4 4 4) -LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15) -POLYGON((0 0,10 0,10 10,0 10,0 0)) -POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1)) -POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5)) -POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5),(1 1,2 1,2 2,1 2,1 1)) -POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1)) -POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1),(1 1 1,2 1 1,2 2 1,1 2 1,1 1 1)) -GEOMETRYCOLLECTION(POINT(1 2)) -GEOMETRYCOLLECTION(POINT(1 2 3)) -GEOMETRYCOLLECTION(LINESTRING(0 0,1 1,2 2,3 3,4 4)) -GEOMETRYCOLLECTION(LINESTRING(1 2 3,4 5 6,7 8 9,10 11 12,13 14 15)) -GEOMETRYCOLLECTION(POLYGON((0 0 1,10 0 1,10 10 1,0 10 1,0 0 1),(5 5 1,7 5 1,7 7 1,5 7 1,5 5 1))) -psql:regress.sql:30: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:31: ERROR: Can not mix dimentionality in a geometry -GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(0 0,1 1,2 2,3 3,4 4)) -psql:regress.sql:33: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:34: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:35: ERROR: Can not mix dimentionality in a geometry -MULTIPOINT(1 2) -MULTIPOINT(1 2 3) -MULTIPOINT(1 2,3 4,5 6) -MULTIPOINT(1 2 3,5 6 7,8 9 10,11 12 13) -psql:regress.sql:41: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:42: ERROR: Can not mix dimentionality in a geometry -MULTILINESTRING((0 0,1 1,2 2,3 3,4 4)) -MULTILINESTRING((0 0,1 1,2 2,3 3,4 4),(0 0,1 1,2 2,3 3,4 4)) -psql:regress.sql:46: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:47: ERROR: Can not mix dimentionality in a geometry -MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0))) -MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5))) -psql:regress.sql:51: ERROR: Can not mix dimentionality in a geometry -GEOMETRYCOLLECTION(MULTIPOINT(1 2)) -GEOMETRYCOLLECTION(MULTIPOINT(1 2 3)) -GEOMETRYCOLLECTION(MULTIPOINT(1 2 3,5 6 7,8 9 10,11 12 13)) -GEOMETRYCOLLECTION(MULTILINESTRING((0 0,1 1,2 2,3 3,4 4))) -psql:regress.sql:58: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:59: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:60: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:61: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:62: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:63: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:64: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:65: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:67: ERROR: Can not mix dimentionality in a geometry -GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(1 1))) -psql:regress.sql:72: ERROR: parse error - invalid geometry -psql:regress.sql:73: ERROR: parse error - invalid geometry -psql:regress.sql:74: ERROR: parse error - invalid geometry -psql:regress.sql:75: ERROR: parse error - invalid geometry -psql:regress.sql:76: ERROR: parse error - invalid geometry -psql:regress.sql:77: ERROR: parse error - invalid geometry -POLYGON((0 0,10 0,10 10,0 10)) -POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7)) -psql:regress.sql:80: ERROR: parse error - invalid geometry -psql:regress.sql:85: ERROR: parse error - invalid geometry -psql:regress.sql:86: ERROR: parse error - invalid geometry -psql:regress.sql:87: ERROR: geometry requires more points -POINT(inf 0) -POINT(-inf 0) -psql:regress.sql:90: ERROR: parse error - invalid geometry -t -f -t -f -t -psql:regress.sql:102: ERROR: parse error - invalid geometry -f -f -f -f -f -f -t -t -f -f -t -f -t -f -t -f -f -t -t -f -t -f -f -t -f -t -f -t -f -f -f -f -t -t -f -BOX3D(0 0 0,7 7 0) -010300000001000000050000000000000000000000000000000000000000000000000000000000000000001C400000000000001C400000000000001C400000000000001C40000000000000000000000000000000000000000000000000 -2 -4 -psql:regress.sql:173: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:175: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:178: ERROR: function numb_sub_objs(geometry) does not exist -HINT: No function matches the given name and argument types. You may need to add explicit type casts. - -GeometryCollection[] with 3 elements - Point[] - Line[] with 3 points - MultiPoint[] with 2 elements - Point[] - Point[] - -psql:regress.sql:185: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:187: ERROR: Can not mix dimentionality in a geometry -psql:regress.sql:189: ERROR: Can not mix dimentionality in a geometry -4.24264068711929 -4.24264068711929 -5.19615242270663 -psql:regress.sql:198: ERROR: function truly_inside(geometry, box3d) does not exist -HINT: No function matches the given name and argument types. You may need to add explicit type casts. -psql:regress.sql:199: ERROR: function truly_inside(geometry, box3d) does not exist -HINT: No function matches the given name and argument types. You may need to add explicit type casts. -CREATE TABLE -INSERT 8170169 1 - - ----test basic ops on this - -select box3d(a) as box3d_a, box3d(b) as box3d_b from TEST; -BOX3D(1.19894826 1.20265412 0,999.932129 999.692932 0)|BOX3D(1.40486765 1.3484304 0,999.857666 999.936401 0) - -select a <>b from TEST; -f -select a &>b from TEST; -f - -select a ~= b from TEST; -f -select a @ b from TEST; -f -select a ~ b from TEST; -f - -select mem_size(a), mem_size(b) from TEST; -34009|34009 - -drop table TEST; -DROP TABLE diff --git a/regress/run_regress b/regress/run_regress index ec8604850..02e87893d 100755 --- a/regress/run_regress +++ b/regress/run_regress @@ -1,15 +1,13 @@ #!/bin/sh echo "Running Normal Regression Test..." echo -echo "Differences such as 'INSERT 18641077 1' are not important" -echo -echo " expected:> obtained:<" +echo " expected:'<' obtained:'>'" echo DB=postgis_reg createdb $DB > /dev/null createlang plpgsql $DB > /dev/null psql -f ../lwpostgis.sql $DB > /dev/null 2>&1 -psql -tA -f regress.sql $DB > regress_out 2>&1 -diff regress_out regress_expected +psql -tA < regress.sql $DB 2>&1 | grep -v INSERT > regress_out +diff regress_expected regress_out dropdb $DB > /dev/null