[GRASS-SVN] r74072 - grass/trunk/general/g.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 9 09:51:40 PST 2019
Author: mmetz
Date: 2019-02-09 09:51:40 -0800 (Sat, 09 Feb 2019)
New Revision: 74072
Modified:
grass/trunk/general/g.proj/input.c
Log:
g.proj: enhancement to try opening a geofile as wkt definition, see also gdalsrsinfo
Modified: grass/trunk/general/g.proj/input.c
===================================================================
--- grass/trunk/general/g.proj/input.c 2019-02-09 14:26:45 UTC (rev 74071)
+++ grass/trunk/general/g.proj/input.c 2019-02-09 17:51:40 UTC (rev 74072)
@@ -280,9 +280,12 @@
set_gdal_region(gdal_ds);
hSRS = OSRNewSpatialReference(wktstring);
}
- else
- G_fatal_error(_("Unable to read georeferenced file <%s> using "
- "GDAL library"), geofile);
+ else {
+ G_warning(_("Unable to read georeferenced file <%s> using "
+ "GDAL library, trying to open it as ESRI WKT"), geofile);
+
+ return input_wkt(geofile);
+ }
}
if (cellhd.proj == PROJECTION_XY)
More information about the grass-commit
mailing list