[GRASS-SVN] r72329 - grass/trunk/raster/r.in.lidar

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 6 09:00:28 PST 2018


Author: marisn
Date: 2018-03-06 09:00:28 -0800 (Tue, 06 Mar 2018)
New Revision: 72329

Modified:
   grass/trunk/raster/r.in.lidar/main.c
   grass/trunk/raster/r.in.lidar/r.in.lidar.html
Log:
r.in.lidar: Trim option affects only trimmean method.
Fail if user atempts to use it with other metods.


Modified: grass/trunk/raster/r.in.lidar/main.c
===================================================================
--- grass/trunk/raster/r.in.lidar/main.c	2018-03-06 16:24:11 UTC (rev 72328)
+++ grass/trunk/raster/r.in.lidar/main.c	2018-03-06 17:00:28 UTC (rev 72329)
@@ -362,6 +362,11 @@
         set_region_flag->answer = '\0';
     }
 
+    /* Trim option is used only for trimmean method */
+    if (trim_opt->answer != NULL && strcmp(method_opt->answer, "trimmean") != 0) {
+        G_fatal_error(_("Trim option can be used only with trimmean method"));
+    }
+
     struct StringList infiles;
 
     if (file_list_opt->answer) {

Modified: grass/trunk/raster/r.in.lidar/r.in.lidar.html
===================================================================
--- grass/trunk/raster/r.in.lidar/r.in.lidar.html	2018-03-06 16:24:11 UTC (rev 72328)
+++ grass/trunk/raster/r.in.lidar/r.in.lidar.html	2018-03-06 17:00:28 UTC (rev 72329)
@@ -360,6 +360,11 @@
 The default map <b>type</b>=<tt>FCELL</tt> is intended as compromise between
 preserving data precision and limiting system resource consumption.
 
+<h3>Trim option</h3>
+<p>
+Trim option value is used only when calculating trimmed mean values.
+Attempt to use it with other statistical methods will result in an error.
+
 <h2>EXAMPLES</h2>
 
 Simple example of binning of point from a LAS file into a newly created



More information about the grass-commit mailing list