From: Bborie Park Date: Wed, 7 Mar 2012 04:28:02 +0000 (+0000) Subject: Slightly more verbose error message for when rt_raster_gdal_rasterize() is unable... X-Git-Tag: 2.0.0beta2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa08dbe28d487abc5a2c5574b92fc691e6891072;p=postgis Slightly more verbose error message for when rt_raster_gdal_rasterize() is unable to have an OSR object project a provided srs text. git-svn-id: http://svn.osgeo.org/postgis/trunk@9413 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index f06c8124f..0a5999c7d 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -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);