[GRASS-SVN] r61707 - in grass/trunk: 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:53:57 PDT 2014


Author: neteler
Date: 2014-08-20 13:53:56 -0700 (Wed, 20 Aug 2014)
New Revision: 61707

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

Modified: grass/trunk/raster/r.horizon/main.c
===================================================================
--- grass/trunk/raster/r.horizon/main.c	2014-08-20 15:35:35 UTC (rev 61706)
+++ grass/trunk/raster/r.horizon/main.c	2014-08-20 20:53:56 UTC (rev 61707)
@@ -347,6 +347,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/trunk/raster/r.horizon/r.horizon.html
===================================================================
--- grass/trunk/raster/r.horizon/r.horizon.html	2014-08-20 15:35:35 UTC (rev 61706)
+++ grass/trunk/raster/r.horizon/r.horizon.html	2014-08-20 20:53:56 UTC (rev 61707)
@@ -111,10 +111,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/trunk/vector/v.buffer/main.c
===================================================================
--- grass/trunk/vector/v.buffer/main.c	2014-08-20 15:35:35 UTC (rev 61706)
+++ grass/trunk/vector/v.buffer/main.c	2014-08-20 20:53:56 UTC (rev 61707)
@@ -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/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c	2014-08-20 15:35:35 UTC (rev 61706)
+++ grass/trunk/vector/v.clean/main.c	2014-08-20 20:53:56 UTC (rev 61707)
@@ -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/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2014-08-20 15:35:35 UTC (rev 61706)
+++ grass/trunk/vector/v.in.ogr/main.c	2014-08-20 20:53:56 UTC (rev 61707)
@@ -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