]> granicus.if.org Git - postgis/commitdiff
Test for #1150, null entry in spatial_ref_sys
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 24 Jan 2012 17:20:57 +0000 (17:20 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 24 Jan 2012 17:20:57 +0000 (17:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8913 b70326c6-7e19-0410-871a-916f4a2858ee

regress/tickets.sql
regress/tickets_expected

index 331930c82aa3208d4f83c507bfc67423c655536e..3349b1a60cd19a0b5dc78f0245ccc95d1ad717a2 100644 (file)
@@ -564,6 +564,12 @@ with inp AS ( SELECT
        st_astext(mm), st_numgeometries(mm)
 FROM inp;
 
+-- #1150
+insert into spatial_ref_sys (srid, proj4text) values (500001,NULL);
+insert into spatial_ref_sys (srid, proj4text) values (500002, '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs');
+select '#1150', st_astext(st_transform('SRID=500002;POINT(0 0)',500001));
+
+
 -- Clean up
 DELETE FROM spatial_ref_sys;
 
index f85419f242d3a0e60b3bf679d3ea0425a2ce79b5..94f530d8999b519f2992a39780398db3c662dba6 100644 (file)
@@ -184,3 +184,4 @@ ERROR:  MultiSurface cannot contain MultiPoint element
 #852.2|1|t|t
 #852.2|2|t|t
 #1489|MULTIPOINT EMPTY|0|MULTILINESTRING EMPTY|0|MULTIPOLYGON EMPTY|0|GEOMETRYCOLLECTION EMPTY|0
+ERROR:  AddToPROJ4SRSCache: couldn't parse proj4 string: '': (null)