]> granicus.if.org Git - postgis/commitdiff
Added tests for makeline, makebox2d and makebox3d
authorSandro Santilli <strk@keybit.net>
Fri, 28 Jul 2006 13:07:52 +0000 (13:07 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 28 Jul 2006 13:07:52 +0000 (13:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2462 b70326c6-7e19-0410-871a-916f4a2858ee

regress/ctors.sql
regress/ctors_expected

index 85543c7d0b1cce04b7d56eeed0cb3bf902d10f20..4f5f7a35493a4ba04f26fd2edcd43dc92dc37d24 100644 (file)
@@ -2,3 +2,13 @@
 SELECT SRID(collect('SRID=32749;POINT(0 0)', 'SRID=32749;POINT(1 1)'));
 
 SELECT collect('SRID=32749;POINT(0 0)', 'SRID=32740;POINT(1 1)');
+
+select asewkt(makeline('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)'));
+select makeline('POINT(0 0)', 'SRID=3;POINT(1 1)');
+
+-- postgis-users/2006-July/012788.html
+select makebox2d('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)');
+select makebox2d('POINT(0 0)', 'SRID=3;POINT(1 1)');
+
+select makebox3d('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)');
+select makebox3d('POINT(0 0)', 'SRID=3;POINT(1 1)');
index d67a0fb641754b2cf3a500aa327ecb23f58bdb88..84ca34adabd42f96b941dcbcbfd645eaddfdd689 100644 (file)
@@ -1,2 +1,8 @@
 32749
 ERROR:  Operation on mixed SRID geometries
+SRID=3;LINESTRING(0 0,1 1)
+ERROR:  Operation on mixed SRID geometries
+BOX(0 0,1 1)
+ERROR:  Operation on mixed SRID geometries
+BOX3D(0 0 0,1 1 0)
+ERROR:  Operation on mixed SRID geometries