浏览代码

v.clean/v.in.ogr: tell user that degree is unit in LL locations

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61576 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 年之前
父节点
当前提交
5bcbf183e6
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      vector/v.clean/main.c
  2. 4 0
      vector/v.in.ogr/main.c

+ 4 - 0
vector/v.clean/main.c

@@ -196,6 +196,10 @@ int main(int argc, char *argv[])
     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;

+ 4 - 0
vector/v.in.ogr/main.c

@@ -310,6 +310,10 @@ int main(int argc, char *argv[])
 
     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 */