]> granicus.if.org Git - postgis/commitdiff
Removed emptry string check that prevented use of proj4text or srtext in
authorBborie Park <bkpark at ucdavis.edu>
Thu, 19 Apr 2012 15:24:00 +0000 (15:24 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Thu, 19 Apr 2012 15:24:00 +0000 (15:24 +0000)
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

index d8b3efd8dda0f98bfb4410332c36300779e8d68b..03531b75d128e790731543a00b4d280d588b209e 100644 (file)
@@ -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) &&