]> granicus.if.org Git - postgis/commitdiff
Slightly more verbose error message for when rt_raster_gdal_rasterize() is unable...
authorBborie Park <bkpark at ucdavis.edu>
Wed, 7 Mar 2012 04:28:02 +0000 (04:28 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Wed, 7 Mar 2012 04:28:02 +0000 (04:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9413 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c

index f06c8124fcae8963b085dae9ca1c448e98be7404..0a5999c7d703cf52979dac2305177f4842547b29 100644 (file)
@@ -320,13 +320,13 @@ rt_util_gdal_convert_sr(const char *srs, int proj4) {
                        OSRExportToWkt(hsrs, &rtn);
        }
        else {
-               rterror("rt_util_gdal_convert_sr: Could not process the provided srs:%s", srs);
+               rterror("rt_util_gdal_convert_sr: Could not process the provided srs: %s", srs);
                return NULL;
        }
 
        OSRDestroySpatialReference(hsrs);
        if (rtn == NULL) {
-               rterror("rt_util_gdal_convert_sr: Could not process the provided srs:%s", srs);
+               rterror("rt_util_gdal_convert_sr: Could not process the provided srs: %s", srs);
                return NULL;
        }
 
@@ -9345,7 +9345,7 @@ rt_raster_gdal_rasterize(const unsigned char *wkb,
        if (NULL != srs && strlen(srs)) {
                src_sr = OSRNewSpatialReference(NULL);
                if (OSRSetFromUserInput(src_sr, srs) != OGRERR_NONE) {
-                       rterror("rt_raster_gdal_rasterize: Unable to create OSR spatial reference");
+                       rterror("rt_raster_gdal_rasterize: Unable to create OSR spatial reference using the provided srs: %s", srs);
 
                        if (noband) {
                                rtdealloc(_pixtype);