[GRASS-SVN] r61576 - in grass/branches/releasebranch_7_0/vector: v.clean v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 9 22:15:32 PDT 2014


Author: neteler
Date: 2014-08-09 22:15:32 -0700 (Sat, 09 Aug 2014)
New Revision: 61576

Modified:
   grass/branches/releasebranch_7_0/vector/v.clean/main.c
   grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c
Log:
v.clean/v.in.ogr: tell user that degree is unit in LL locations

Modified: grass/branches/releasebranch_7_0/vector/v.clean/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.clean/main.c	2014-08-09 11:24:34 UTC (rev 61575)
+++ grass/branches/releasebranch_7_0/vector/v.clean/main.c	2014-08-10 05:15:32 UTC (rev 61576)
@@ -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/branches/releasebranch_7_0/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c	2014-08-09 11:24:34 UTC (rev 61575)
+++ grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c	2014-08-10 05:15:32 UTC (rev 61576)
@@ -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