Skip to content

Commit

Permalink
Fixes #349
Browse files Browse the repository at this point in the history
Fixes #348, adds OtsuThresholding, ExtractByAttribute, and DeviationFromRegionalDirection tools.
  • Loading branch information
jblindsay committed Jun 7, 2023
1 parent 59d3451 commit 7e8af99
Show file tree
Hide file tree
Showing 34 changed files with 1,950 additions and 470 deletions.
Binary file modified .DS_Store
Binary file not shown.
74 changes: 72 additions & 2 deletions Cargo.lock

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

Binary file removed WhiteboxTools_darwin_m_series.zip
Binary file not shown.
Binary file added doc_img/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ for more details.
* Release Notes: *
******************

Version 2.4.0 (xx-xx-20xx)
- Added the ExtractByAttribute tool to filter out vector features by attribute characteristics.
- Added the DeviationFromRegionalDirection tool.
- Added the OtsuThresholding tool, which uses Ostu's method for optimal binary thresholding,
transforming the input image into background and foreground pixels.
- Fixed a bug with polygon holes in the RasterToVectorPolygons tool.

Version 2.3.0 (28-03-2023)
- Added the new Whitebox Runner v2.0. This version of WbRunner is an entirely new application with many
advancements over the previous version of the WbRunner. It is now written in pure Rust (compared with
Expand Down
Binary file modified whitebox-plugins/.DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions whitebox-plugins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ path = "src/edge_contamination/main.rs"
name = "exposure_towards_wind_flux"
path = "src/exposure_towards_wind_flux/main.rs"

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

[[bin]]
name = "gaussian_scale_space"
path = "src/gaussian_scale_space/main.rs"
Expand Down Expand Up @@ -56,6 +60,10 @@ path = "src/max_upslope_value/main.rs"
name = "normalize_lidar"
path = "src/normalize_lidar/main.rs"

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

[[bin]]
name = "qin_flow_accumulation"
path = "src/qin_flow_accumulation/main.rs"
Expand Down Expand Up @@ -89,12 +97,14 @@ name = "vector_stream_network_analysis"
path = "src/vector_stream_network_analysis/main.rs"

[dependencies]
evalexpr = "10.0.0"
fasteval = "0.2.4"
kd-tree = { version = "0.4.1", features = ["rayon"] }
kdtree = "0.6.0"
nalgebra = "0.18.0"
num_cpus = "1.13.0"
rand = { version = "0.7", features = ["small_rng"] }
rayon = "1.7.0"
rstar = "0.9.3"
tsp-rs = "0.1.0"
typenum = "1.15.0"
Expand Down
Binary file modified whitebox-plugins/src/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"tool_name": "ExtractByAttribute",
"exe": "extract_by_attribute",
"short_description": "Extracts features from an input vector into an output file based on attribute properties.",
"toolbox": "GIS Analysis",
"license": "MIT",
"example": ">> .*EXE_NAME -r=ExtractByAttribute -i=input.shp -o=output.shp --statement=\"ELEV>500.0\"",
"parameters": [
{
"name": "Input Vector File",
"flags": ["-i", "--input"],
"description": "Name of the input vector file.",
"parameter_type": {"ExistingFile":{"Vector":"Any"}},
"default_value": null,
"optional": true
},
{
"name": "Output Vector File",
"flags": ["-o", "--output"],
"description": "Name of the output LiDAR points.",
"parameter_type": {"NewFile":{"Vector":"Any"}},
"default_value": null,
"optional": true
},
{
"name": "Statement:",
"flags": ["-s", "--statement"],
"description": "Modify statement e.g. ELEV>500.0.",
"parameter_type": "String",
"default_value": "",
"optional": false
}
]
}
Loading

0 comments on commit 7e8af99

Please sign in to comment.