浏览代码

Tell user about degree unit for buffers and thresholds in PROJECTION_LL

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61707 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 年之前
父节点
当前提交
2d242e82b9
共有 5 个文件被更改,包括 7 次插入5 次删除
  1. 2 0
      raster/r.horizon/main.c
  2. 2 2
      raster/r.horizon/r.horizon.html
  3. 1 1
      vector/v.buffer/main.c
  4. 1 1
      vector/v.clean/main.c
  5. 1 1
      vector/v.in.ogr/main.c

+ 2 - 0
raster/r.horizon/main.c

@@ -347,6 +347,8 @@ int main(int argc, char *argv[])
 
     degreeOutput = flag.degreeOutput->answer;
 
+    if (G_projection() == PROJECTION_LL)
+        G_important_message(_("Note: In latitude-longitude coordinate system specify buffers in degree unit"));
 
     elevin = parm.elevin->answer;
 

+ 2 - 2
raster/r.horizon/r.horizon.html

@@ -111,8 +111,8 @@ you use <b>r.horizon</b> in the raster map mode this option will be ignored.
 even if you use geographical coordinates (longitude/latitude). If your 
 projection is based on distance (easting and northing), these too must 
 be in meters. The buffer parameters must be in the same units as the 
-raster coordinates.
-
+raster coordinates (e.g., for latitude-longitude locations buffers are
+measured in degree unit).
 
 
 <h2>METHOD</h2>

+ 1 - 1
vector/v.buffer/main.c

@@ -320,7 +320,7 @@ int main(int argc, char *argv[])
 
     /* TODO: no geodesic support yet in GEOS */
     if (G_projection() == PROJECTION_LL)
-        G_important_message(_("Note: In latitude-longitude coordinate system distances are in degree units"));
+        G_important_message(_("Note: In latitude-longitude coordinate system specify distances in degree unit"));
 
     if ((dista_opt->answer && bufcol_opt->answer) ||
 	(!(dista_opt->answer || bufcol_opt->answer)))

+ 1 - 1
vector/v.clean/main.c

@@ -198,7 +198,7 @@ int main(int argc, char *argv[])
 
     /* 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"));
+        G_important_message(_("Note: In latitude-longitude coordinate system specify threshold in degree unit"));
 
     /* Read thresholds */
     for (i = 0; i < ntools; i++)

+ 1 - 1
vector/v.in.ogr/main.c

@@ -312,7 +312,7 @@ int main(int argc, char *argv[])
 
     /* 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"));
+        G_important_message(_("Note: In latitude-longitude coordinate system specify threshold in degree unit"));
 
     OGRRegisterAll();