[GRASS-SVN] r54573 - grass/trunk/vector/v.external
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 8 02:46:38 PST 2013
Author: martinl
Date: 2013-01-08 02:46:37 -0800 (Tue, 08 Jan 2013)
New Revision: 54573
Modified:
grass/trunk/vector/v.external/list.c
Log:
v.external: suppress warnings for projection check
Modified: grass/trunk/vector/v.external/list.c
===================================================================
--- grass/trunk/vector/v.external/list.c 2013-01-08 10:29:16 UTC (rev 54572)
+++ grass/trunk/vector/v.external/list.c 2013-01-08 10:46:37 UTC (rev 54573)
@@ -285,6 +285,7 @@
/* projection check */
Ogr_projection = OGR_L_GetSpatialRef(Ogr_layer);
proj_same = 0;
+ G_suppress_warnings(TRUE);
if (GPJ_osr_to_grass(&loc_wind, &proj_info,
&proj_units, Ogr_projection, 0) < 0) {
G_warning(_("Unable to convert input map projection to GRASS "
@@ -298,7 +299,7 @@
else
proj_same = 0;
}
-
+ G_suppress_warnings(FALSE);
fprintf(fd, "%s,%s,%d\n", layer_name,
feature_type(OGRGeometryTypeToName(Ogr_geom_type)),
proj_same);
More information about the grass-commit
mailing list