Comments (4)
@jfbourdon Thanks for spotting this problem. It results from a use of the 'replace' function to handle paired header/data files for raster formats rather than a proper file path handling solution. This is actually pretty widespread within the WhiteboxTools codebase and as such, until it is resolved, it's a best practice to ensure that file extensions do not appear in either the file name or path.
Note that WhiteboxTools is a completely independent codebase and a separate project from Whitebox GAT, which accounts for their different behaviour in this regard.
from whitebox-tools.
I would gladly try to correct the code, but I can't find in converter_raster_format.rs where this replace operation occur (the lines I found don't seem related to that). I don't have any Rust knowledge but I kind of understand what's going on. Is the replace operation somewhere else around line 174?
from whitebox-tools.
Just found where the magic is happening. I'll make a PR if I ever manage to get it to work!
from whitebox-tools.
Thanks @jfbourdon but because this has implications for several of the supported multi-file data formats, I've just finished refactoring each of the places in the codebase where replace was used to modify a file extension to now use the proper Path method in Rust. See the commit here. If you're becoming familiar with Rust, however, I'd certainly welcome any future commits that you may have for WhiteboxTools.
from whitebox-tools.
Related Issues (20)
- WhiteboxWorkflows: kernel dies if file not found
- whitebox.Runner() urllib.error.URLError: <urlopen error unknown url type: https> HOT 1
- whitebox_tools 'Unrecognized tool name NormalizeLidar' HOT 16
- Whitebox-Worflows: Erroneous results when using raster files in NAD83 projection HOT 1
- DTM outputs have a shift between tiles HOT 3
- lidar_digital_surface_model extent changed HOT 1
- Feature Requests: lidar_digital_surface_model HOT 2
- FlowAccumulationFullWorkflow gracefully exits without writing all 3 results
- documentation of PercentElevRange
- [feature request] add option to use D-infinity pointer grid in ElevationAboveStream
- "extract_by_attribute" tool missing from "whitebox_tools.py" (?) HOT 3
- TimeInDayLight - error when calculating local almanac
- WhiteboxWorkflows: Filters based on DEM reading not working
- Arc::try_unwrap fails intermittently during breach_depressions_least_cost
- LidarThinHighDensity throw "panicked at 'index out of bounds:'" depending on the resolution
- Unable to instance WhiteBoxTools in 2.3.1 HOT 7
- Vector Stream Network Analysis argument mismatch in documentation
- Whitebox 2.3.3 (Python): Unrecognized tool name ConditionalEvaluation HOT 18
- The Linux binaries does not contain whitebox_runner HOT 2
- python implementation changes the current working directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whitebox-tools.