Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jblindsay committed Jul 13, 2022
1 parent 31a909e commit cbd2c3c
Show file tree
Hide file tree
Showing 652 changed files with 970 additions and 1,123 deletions.
Binary file modified .DS_Store
100644 → 100755
Binary file not shown.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .vscode/launch.json
100644 → 100755
Empty file.
Empty file modified .vscode/settings.json
100644 → 100755
Empty file.
Empty file modified .vscode/tasks.json
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions Cargo.lock
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified Cargo.toml
100644 → 100755
Empty file.
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified UserManual.txt
100644 → 100755
Empty file.
Empty file modified build.py
100644 → 100755
Empty file.
Empty file modified doc_img/ArcGIS_toolbox.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/AssessRoute_avg_slope.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/AssessRoute_visibility.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/DSM.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/FeaturePreservingSmoothing_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/FeaturePreservingSmoothing_fig2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/FirstReturnTIN.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/GHRGLogoSm.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/Geomorphons.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/HorizonAngle.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/HypsometricAnalysis_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/LidarHistogram_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/LidarSegmentation.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/MaxBranchLength_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/MultidirectionalHillshade_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/MultidirectionalHillshade_fig2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/MultidirectionalHillshade_fig3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/QGIS_add_repo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/QGIS_plugin.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/QGIS_settings.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/QGIS_whitebox.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/SlopeVsElevationPlot_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/StElis_point_cloud.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/StochasticDepressionAnalysis_fig1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/TimeInDaylight.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_img/VisiibilityIndex_fig1.png
100644 → 100755
Empty file modified doc_img/WBRunner.png
100644 → 100755
Empty file modified doc_img/WhiteboxToolsLogoBlue.png
100644 → 100755
Empty file modified doc_img/WhiteboxToolsLogo_vert.svg
100644 → 100755
Empty file modified doc_img/example_project_dir.png
100644 → 100755
Empty file modified doc_img/flow_accum.png
100644 → 100755
Empty file modified doc_img/hypsometricallyTintedHillshade_fig1.png
100644 → 100755
Empty file modified doc_img/wbt_auotcomplete.png
100644 → 100755
Empty file modified doc_img/wbt_directory.png
100644 → 100755
Empty file modified img/.DS_Store
100644 → 100755
Empty file.
Empty file modified img/WBRunner.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogo.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogo.svg
100644 → 100755
Empty file modified img/WhiteboxToolsLogoBlue.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogoGreen.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogo_box_only.svg
100644 → 100755
Empty file modified img/WhiteboxToolsLogo_vert.svg
100644 → 100755
Empty file modified img/WhiteboxToolsLogo_vert1.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogo_vert2.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogo_vert3.png
100644 → 100755
Empty file modified img/WhiteboxToolsLogo_vert4.png
100644 → 100755
Empty file modified img/closed.gif
100644 → 100755
Empty file modified img/closed.png
100644 → 100755
Empty file modified img/open.gif
100644 → 100755
Empty file modified img/open.png
100644 → 100755
Empty file modified img/tool.gif
100644 → 100755
Empty file modified img/tool.png
100644 → 100755
8 changes: 5 additions & 3 deletions readme.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,18 @@ for more details.
******************
Version 2.X.X (XX-XX-20XX)
- Added the TravellingSalesmanProblem tool for identifying short routes connecting multiple locations.
- Added the HeatMap tool for performing kernel density estimation (KDE) from vector points.
- Added the MultiplyOverlay tool.
- Added the MaxUpslopeValue tool.
- Fixed a bug in the automatic install of the Whitebox extensions that affected Windows users.
- Fixed a bug with the persistence of the compress_rasters parameter. Python users were unable to
turn off the compress flag previously.
- Added the ability to set and get the maximum number of processors (--max_procs flag) used by WBT in
- Added the option to set and get the maximum number of processors (--max_procs flag) used by WBT in
the Whitebox Python API.
- Added the ability to output average point density and nominal point spacing to the LidarInfo tool.
- Added the option to output average point density and nominal point spacing to the LidarInfo tool.
- Updated the ClassifyOverlapPoints and FlightlineOverlap tools to use information contained within
the Point Source ID property, rather than a hard-coded time difference threshold, as previously used.
the Point Source ID property, rather than a hard-coded time difference threshold previously used.
- Fixed an issue that affected many tools when input rasters use either NaN or Inf as NoData values.

Version 2.1.0 (30-01-2022)
- The Geomorphons tool for landform classification is now available.
Expand Down
Empty file modified tool_porting.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion wb_runner.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def update_tool_help(self):
b.grid(row=param_num, column=0, sticky=tk.W)
param_num = param_num + 1
elif ('Float' in pt or 'Integer' in pt or
'String' in pt or 'StringOrNumber' in pt or
'Text' in pt or 'String' in pt or 'StringOrNumber' in pt or
'StringList' in pt or 'VectorAttributeField' in pt):
b = DataInput(json_str, self.arg_scroll_frame)
b.grid(row=param_num, column=0, sticky=tk.NSEW)
Expand Down
Empty file modified whitebox-common/Cargo.lock
100644 → 100755
Empty file.
Empty file modified whitebox-common/Cargo.toml
100644 → 100755
Empty file.
Empty file modified whitebox-common/build.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/convex_hull.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/delaunay_triangulation.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/is_clockwise_order.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/line_ops.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/lzw.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/minimum_bounding_box.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/mod.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/poly_area.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/poly_ops.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/poly_perimeter.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/algorithms/smallest_enclosing_circle.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/configs/mod.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/lib.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/plugins.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/rendering/box_whisker.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/rendering/histogram.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/rendering/html.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/rendering/line_graph.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/rendering/mod.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/rendering/scattergram.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/spatial_ref_system/epsg_to_wkt.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/spatial_ref_system/mod.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/array2d.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/bounding_box.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/circle.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/fixed_radius_search.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/line_segment.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/mod.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/n_maximizer.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/n_minimizer.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/point2d.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/point3d.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/polyline.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/polynomial_regression_2d.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/radial_basis_function.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/structures/rectangle_with_data.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/utils/byte_order_reader.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/utils/byte_order_writer.rs
100644 → 100755
Empty file.
Empty file modified whitebox-common/src/utils/mod.rs
100644 → 100755
Empty file.
Empty file modified whitebox-lidar/Cargo.lock
100644 → 100755
Empty file.
Empty file modified whitebox-lidar/Cargo.toml
100644 → 100755
Empty file.
Empty file modified whitebox-lidar/src/header.rs
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions whitebox-lidar/src/las.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ impl LasFile {
}

pub fn get_rgb(&self, index: usize) -> Result<ColourData, Error> {
if self.colour_data.len() >= index {
if self.colour_data.len() > index {
return Ok(self.colour_data[index]);
} else {
return Err(Error::new(ErrorKind::NotFound, "RGB value not found, possibly because the file point format does not include colour data."));
Expand All @@ -480,7 +480,7 @@ impl LasFile {
}

pub fn get_gps_time(&self, index: usize) -> Option<f64> { // Result<f64, Error> {
if self.gps_data.len() >= index {
if self.gps_data.len() > index {
return Some(self.gps_data[index]); // Ok(self.gps_data[index]);
// } else {
// return Err(Error::new(ErrorKind::NotFound, "GPS time value not found, possibly because the file point format does not include GPS data."));
Expand Down
Empty file modified whitebox-lidar/src/lib.rs
100644 → 100755
Empty file.
Empty file modified whitebox-lidar/src/point_data.rs
100644 → 100755
Empty file.
Empty file modified whitebox-lidar/src/vlr.rs
100644 → 100755
Empty file.
Empty file modified whitebox-lidar/src/zlidar_compression.rs
100644 → 100755
Empty file.
Binary file modified whitebox-plugins/.DS_Store
100644 → 100755
Binary file not shown.
6 changes: 6 additions & 0 deletions whitebox-plugins/Cargo.toml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ path = "src/exposure_towards_wind_flux/main.rs"
name = "gaussian_scale_space"
path = "src/gaussian_scale_space/main.rs"

[[bin]]
name = "heat_map"
path = "src/heat_map/main.rs"

[[bin]]
name = "lidar_shift"
path = "src/lidar_shift/main.rs"
Expand Down Expand Up @@ -58,10 +62,12 @@ path = "src/travelling_salesman_problem/main.rs"

[dependencies]
fasteval = "0.2.4"
kd-tree = "0.4.1"
nalgebra = "0.18.0"
num_cpus = "1.13.0"
rand = { version = "0.7", features = ["small_rng"] }
tsp-rs = "0.1.0"
typenum = "1.15.0"
whitebox_common = { path = "../whitebox-common" }
whitebox_lidar = { path = "../whitebox-lidar" }
whitebox_raster = { path = "../whitebox-raster" }
Expand Down
Binary file modified whitebox-plugins/src/.DS_Store
100644 → 100755
Binary file not shown.
Empty file.
Empty file modified whitebox-plugins/src/conditional_evaluation/main.rs
100644 → 100755
Empty file.
Empty file modified whitebox-plugins/src/edge_contamination/edge_contamination.json
100644 → 100755
Empty file.
Empty file modified whitebox-plugins/src/edge_contamination/main.rs
100644 → 100755
Empty file.
Empty file.
Empty file modified whitebox-plugins/src/exposure_towards_wind_flux/main.rs
100644 → 100755
Empty file.
Empty file.
Empty file modified whitebox-plugins/src/gaussian_scale_space/main.rs
100644 → 100755
Empty file.
Binary file added whitebox-plugins/src/heat_map/.DS_Store
Binary file not shown.
66 changes: 66 additions & 0 deletions whitebox-plugins/src/heat_map/heat_map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"tool_name": "HeatMap",
"exe": "heat_map",
"short_description": "This tool calculates a heat map, or kernel density estimation (KDE), for an input point set.",
"toolbox": "GIS Analysis",
"license": "Proprietary",
"example": ">> .*EXE_NAME -r=HeatMap -i=points.shp -o=density.tif --bandwidth=1000.0 --kernel='quartic' --cell_size=10.0",
"parameters": [
{
"name": "Input Points",
"flags": ["-i", "--input"],
"description": "Name of the input points shapefile.",
"parameter_type": {"ExistingFile":{"Vector":"Point"}},
"default_value": null,
"optional": false
},
{
"name": "Weight Field Name (Optional)",
"flags": ["--weights", "--weight_field"],
"description": "Optional name of the attribute containing point weight.",
"parameter_type": "String",
"default_value": null,
"optional": true
},
{
"name": "Output Raster Image",
"flags": ["-o", "--output"],
"description": "Name of the output raster image file.",
"parameter_type": {"NewFile":"Raster"},
"default_value": null,
"optional": false
},
{
"name": "Bandwidth",
"flags": ["--bandwidth"],
"description": "Bandwidth (metres).",
"parameter_type": "Float",
"default_value": "",
"optional": false
},
{
"name": "Kernel Type",
"flags": ["--kernel"],
"description": "Kernel type; one of 'uniform', 'triangular', 'epanechnikov', 'quartic', 'triweight', 'tricube', 'gaussian', 'cosine', 'logistic', 'sigmoid', 'silverman'.",
"parameter_type": {"OptionList": ["uniform", "triangular", "epanechnikov", "quartic", "triweight", "tricube", "gaussian", "cosine", "logistic", "sigmoid", "silverman"]},
"default_value": "quartic",
"optional": true
},
{
"name": "Output Raster Cell Size (Optional)",
"flags": ["--cell_size"],
"description": "Optionally specified cell size of output raster, in metres. Not used when base raster is specified.",
"parameter_type": "Float",
"default_value": "",
"optional": true
},
{
"name": "Base Raster (Optional)",
"flags": ["--base"],
"description": "Optionally specified input base raster file. Not used when a cell size is specified.",
"parameter_type": {"ExistingFile":"Raster"},
"default_value": null,
"optional": true
}
]
}
Loading

0 comments on commit cbd2c3c

Please sign in to comment.