mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 00:52:40 +00:00
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
This commit is contained in:
parent
8cec216811
commit
fa08dbe28d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue