[GRASS-SVN] r61708 - in grass/branches/releasebranch_7_0: raster/r.horizon vector/v.buffer vector/v.clean vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 20 13:55:14 PDT 2014


Author: neteler
Date: 2014-08-20 13:55:14 -0700 (Wed, 20 Aug 2014)
New Revision: 61708

Modified:
   grass/branches/releasebranch_7_0/raster/r.horizon/main.c
   grass/branches/releasebranch_7_0/raster/r.horizon/r.horizon.html
   grass/branches/releasebranch_7_0/vector/v.buffer/main.c
   grass/branches/releasebranch_7_0/vector/v.clean/main.c
   grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c
Log:
Tell user about degree unit for buffers and thresholds in PROJECTION_LL

Modified: grass/branches/releasebranch_7_0/raster/r.horizon/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.horizon/main.c	2014-08-20 20:53:56 UTC (rev 61707)
+++ grass/branches/releasebranch_7_0/raster/r.horizon/main.c	2014-08-20 20:55:14 UTC (rev 61708)
@@ -337,6 +337,8 @@
 
     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;
 

Modified: grass/branches/releasebranch_7_0/raster/r.horizon/r.horizon.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.horizon/r.horizon.html	2014-08-20 20:53:56 UTC (rev 61707)
+++ grass/branches/releasebranch_7_0/raster/r.horizon/r.horizon.html	2014-08-20 20:55:14 UTC (rev 61708)
@@ -101,10 +101,10 @@
 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>
 <p>The calculation method is based on the method used in <b>r.sun</b>
 to calculate shadows. It starts at a very shallow angle and walks

Modified: grass/branches/releasebranch_7_0/vector/v.buffer/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.buffer/main.c	2014-08-20 20:53:56 UTC (rev 61707)
+++ grass/branches/releasebranch_7_0/vector/v.buffer/main.c	2014-08-20 20:55:14 UTC (rev 61708)
@@ -320,7 +320,7 @@
 
     /* 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)))

Modified: grass/branches/releasebranch_7_0/vector/v.clean/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.clean/main.c	2014-08-20 20:53:56 UTC (rev 61707)
+++ grass/branches/releasebranch_7_0/vector/v.clean/main.c	2014-08-20 20:55:14 UTC (rev 61708)
@@ -198,7 +198,7 @@
 
     /* 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++)

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-20 20:53:56 UTC (rev 61707)
+++ grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c	2014-08-20 20:55:14 UTC (rev 61708)
@@ -312,7 +312,7 @@
 
     /* 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();
 



More information about the grass-commit mailing list