[GRASS-SVN] r61575 - in grass/trunk/vector: v.clean v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 9 04:24:34 PDT 2014
Author: neteler
Date: 2014-08-09 04:24:34 -0700 (Sat, 09 Aug 2014)
New Revision: 61575
Modified:
grass/trunk/vector/v.clean/main.c
grass/trunk/vector/v.in.ogr/main.c
Log:
v.clean/v.in.ogr: tell user that degree is unit in LL locations
Modified: grass/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c 2014-08-09 06:27:37 UTC (rev 61574)
+++ grass/trunk/vector/v.clean/main.c 2014-08-09 11:24:34 UTC (rev 61575)
@@ -196,6 +196,10 @@
G_debug(1, "ntools = %d", ntools);
threshs = (double *)G_malloc(ntools * sizeof(double));
+ /* TODO: threshold might be recalculated with optional geodesic support to meters */
+ if (G_projection() == PROJECTION_LL)
+ G_important_message(_("Note: In latitude-longitude coordinate system threshold in degree units"));
+
/* Read thresholds */
for (i = 0; i < ntools; i++)
threshs[i] = 0.0;
Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c 2014-08-09 06:27:37 UTC (rev 61574)
+++ grass/trunk/vector/v.in.ogr/main.c 2014-08-09 11:24:34 UTC (rev 61575)
@@ -310,6 +310,10 @@
G_begin_polygon_area_calculations(); /* Used in geom() */
+ /* TODO: threshold might be recalculated with optional geodesic support to meters */
+ if (G_projection() == PROJECTION_LL)
+ G_important_message(_("Note: In latitude-longitude coordinate system threshold in degree units"));
+
OGRRegisterAll();
/* list supported formats */
More information about the grass-commit
mailing list