Переглянути джерело

r.in.lidar: Trim option affects only trimmean method.
Fail if user atempts to use it with other metods.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72329 15284696-431f-4ddb-bdfa-cd5b030d7da7

Maris Nartiss 7 роки тому
батько
коміт
472670dd1d
2 змінених файлів з 10 додано та 0 видалено
  1. 5 0
      raster/r.in.lidar/main.c
  2. 5 0
      raster/r.in.lidar/r.in.lidar.html

+ 5 - 0
raster/r.in.lidar/main.c

@@ -362,6 +362,11 @@ int main(int argc, char *argv[])
         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) {

+ 5 - 0
raster/r.in.lidar/r.in.lidar.html

@@ -360,6 +360,11 @@ the number of data points.
 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