]> granicus.if.org Git - postgis/commitdiff
Changed the string "MISSING GDAL DATA" to "GDAL_DATA not found".
authorBborie Park <bkpark at ucdavis.edu>
Thu, 21 Jun 2012 20:18:18 +0000 (20:18 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Thu, 21 Jun 2012 20:18:18 +0000 (20:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9969 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c
raster/test/regress/check_gdal.sql

index 8b5f34fa674e79719015ac0ca601259c5dcbf0cc..414a173e0544b3a1d2ce629118472cd017f06058 100644 (file)
@@ -633,11 +633,11 @@ Datum RASTER_gdal_version(PG_FUNCTION_ARGS)
        /* add indicator if GDAL isn't configured right */
        if (!rt_util_gdal_configured()) {
                char *rtn = NULL;
-               rtn = palloc(strlen(ver) + strlen(" MISSING GDAL DATA") + 1);
+               rtn = palloc(strlen(ver) + strlen(" GDAL_DATA not found") + 1);
                if (!rtn)
                        result = cstring2text(ver);
                else {
-                       sprintf(rtn, "%s MISSING GDAL DATA", ver);
+                       sprintf(rtn, "%s GDAL_DATA not found", ver);
                        result = cstring2text(rtn);
                        pfree(rtn);
                }
index 0da564e5d631c8fa07372f1eb9956f7a75675431..764619f0b73b0d21a2057c5e0dc9c2c90b0fa6a8 100644 (file)
@@ -1,6 +1,6 @@
 SELECT 
        CASE
-               WHEN strpos(postgis_gdal_version(), 'MISSING') <> 0
+               WHEN strpos(postgis_gdal_version(), 'GDAL_DATA') <> 0
                        THEN false
                ELSE NULL
        END;