From: Paul Ramsey Date: Tue, 24 Jan 2012 17:20:57 +0000 (+0000) Subject: Test for #1150, null entry in spatial_ref_sys X-Git-Tag: 2.0.0alpha2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2ec478bd1077594e60069cad81ea958dd50839f;p=postgis Test for #1150, null entry in spatial_ref_sys git-svn-id: http://svn.osgeo.org/postgis/trunk@8913 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/tickets.sql b/regress/tickets.sql index 331930c82..3349b1a60 100644 --- a/regress/tickets.sql +++ b/regress/tickets.sql @@ -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; diff --git a/regress/tickets_expected b/regress/tickets_expected index f85419f24..94f530d89 100644 --- a/regress/tickets_expected +++ b/regress/tickets_expected @@ -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)