From 14651e969fb73f68b1159441dc4bbdf657534f9e Mon Sep 17 00:00:00 2001 From: John Lindsay Date: Thu, 13 Feb 2020 09:25:41 -0500 Subject: [PATCH] Feature addition for "Min/Max values for classes in Reclass tool #67" Feature addition for "Min/Max values for classes in Reclass tool #67" --- src/tools/gis_analysis/reclass.rs | 6 +++++- src/tools/gis_analysis/reclass_from_file.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tools/gis_analysis/reclass.rs b/src/tools/gis_analysis/reclass.rs index 64781dd8f..e72b15ffb 100644 --- a/src/tools/gis_analysis/reclass.rs +++ b/src/tools/gis_analysis/reclass.rs @@ -30,7 +30,11 @@ use std::thread; /// /// > --reclass_vals='0.0;1.0;1.0;2.0' /// -/// Here, 0.0 is assigned to input grid cell values of 1.0 and 1.0 is output for all input cells with a value of 2.0. +/// Here, 0.0 is assigned to input grid cell values of 1.0 and 1.0 is output for all input cells with a value of 2.0. Users +/// may add the text strings *min* and *max* in the class definitions to stand in for the raster's minimum and maximum values. +/// For example: +/// +/// > --reclass_vals='0.0;min;1.0;1.0;1.0;max' /// /// Any values in the input raster that do not fall within one of the classes will be assigned its original value in the /// output raster. NoData values in the input raster will be assigned NoData values in the output raster, unless NoData is diff --git a/src/tools/gis_analysis/reclass_from_file.rs b/src/tools/gis_analysis/reclass_from_file.rs index 039d2c791..b4e683dcb 100644 --- a/src/tools/gis_analysis/reclass_from_file.rs +++ b/src/tools/gis_analysis/reclass_from_file.rs @@ -25,7 +25,7 @@ use std::thread; /// input raster image (`--input`) and a reclass file (`--reclass_file`). The reclass file is a text file /// containing two or three columns, delimited (i.e. separated) by either a space, tab, or comma. The columns /// describe respectively the *New* value, the *From* value, and the *To Just Less Than* value. Classes must be -/// mutually exclusive, i.e. non-overlapping. You may add the text strings 'min' and 'max' in the class definitions +/// mutually exclusive, i.e. non-overlapping. Users may add the text strings *min* and *max* in the class definitions /// to stand in for the raster's minimum and maximum values. /// /// If only two columns are present in the reclass file, i.e. the *From* column is left blank, the tool will