[GRASS-SVN] r72567 - grass/trunk/general/g.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 25 06:10:50 PDT 2018
Author: martinl
Date: 2018-03-25 06:10:50 -0700 (Sun, 25 Mar 2018)
New Revision: 72567
Modified:
grass/trunk/general/g.proj/input.c
Log:
g.proj: be less verbose, turn some message into debug
Modified: grass/trunk/general/g.proj/input.c
===================================================================
--- grass/trunk/general/g.proj/input.c 2018-03-25 11:21:54 UTC (rev 72566)
+++ grass/trunk/general/g.proj/input.c 2018-03-25 13:10:50 UTC (rev 72567)
@@ -244,7 +244,7 @@
/* Try opening file with OGR first because it doesn't output a
* (potentially confusing) error message if it can't open the file */
- G_message(_("Trying to open with OGR..."));
+ G_debug(1, "Trying to open <%s> with OGR...", geofile);
OGRRegisterAll();
hSRS = NULL;
@@ -252,7 +252,7 @@
&& (OGR_DS_GetLayerCount(ogr_ds) > 0)) {
OGRLayerH ogr_layer;
- G_message(_("...succeeded."));
+ G_debug(1, "...succeeded.");
/* Get the first layer */
ogr_layer = OGR_DS_GetLayer(ogr_ds, 0);
hSRS = OGR_L_GetSpatialRef(ogr_layer);
@@ -265,13 +265,13 @@
/* Try opening with GDAL */
GDALDatasetH gdal_ds;
- G_message(_("Trying to open with GDAL..."));
+ G_debug(1, "Trying to open with GDAL...");
GDALAllRegister();
if ((gdal_ds = GDALOpen(geofile, GA_ReadOnly))) {
char *wktstring;
- G_message(_("...succeeded."));
+ G_debug(1, "...succeeded.");
wktstring = (char *)GDALGetProjectionRef(gdal_ds);
ret =
GPJ_wkt_to_grass(&cellhd, &projinfo, &projunits, wktstring,
@@ -281,8 +281,8 @@
hSRS = OSRNewSpatialReference(wktstring);
}
else
- G_fatal_error(_("Could not read georeferenced file %s using "
- "either OGR nor GDAL"), geofile);
+ G_fatal_error(_("Unable to read georeferenced file <%s> using "
+ "GDAL library"), geofile);
}
if (cellhd.proj == PROJECTION_XY)
More information about the grass-commit
mailing list