From 34fbfadfb89888e36555d8b28a264dbe872b13ea Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Thu, 19 Apr 2012 15:24:00 +0000 Subject: [PATCH] Removed emptry string check that prevented use of proj4text or srtext in rtpg_getSR(). Ticket is #1782 git-svn-id: http://svn.osgeo.org/postgis/trunk@9649 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_pg/rt_pg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/raster/rt_pg/rt_pg.c b/raster/rt_pg/rt_pg.c index d8b3efd8d..03531b75d 100644 --- a/raster/rt_pg/rt_pg.c +++ b/raster/rt_pg/rt_pg.c @@ -526,13 +526,15 @@ rtpg_getSR(int srid) /* which column to use? */ for (i = 1; i < 4; i++) { tmp = SPI_getvalue(tuple, tupdesc, i); - if (NULL == tmp || !strlen(tmp)) { + if (NULL == tmp) { elog(ERROR, "rtpg_getSR: Cannot find SRID (%d) in spatial_ref_sys", srid); if (SPI_tuptable) SPI_freetuptable(tuptable); SPI_finish(); return NULL; } + POSTGIS_RT_DEBUGF(4, "Value for column %d is %s", i, tmp); + /* value AND GDAL supports this SR */ if ( strlen(tmp) && -- 2.50.1