jblindsay / whitebox-tools

An advanced geospatial data analysis platform
https://www.whiteboxgeo.com/
MIT License
944 stars 161 forks source link

LIDAR Interpolation Methods output TIFF without CRS #307

Open MickeyRush opened 1 year ago

MickeyRush commented 1 year ago

I've been using the example scripts provided here: https://jblindsay.github.io/wbt_book/tutorials/lidar.html#grid_lidar

I've used the scripts under the headings "How do I convert a LiDAR point cloud into a raster?" and "I have many LAS/zLidar files and want to interpolate all of them at once". In both cases, whitebox tools outputs a TIFF that doesn't have a coordinate reference system associated with it.

The LAS files are too big to upload but I got them here: https://noaa-nos-coastal-lidar-pds.s3.amazonaws.com/laz/geoid18/9003/index.html

What am I doing wrong?

glebpinigin commented 1 year ago

It looks like the source code of tool lidar_idw_interpolation.rs contains a bug, which is pretty much similar to issue #301 Here we can see, that output raster is being created from configs unlike in most of tools.

let mut output = Raster::initialize_using_config(&output_file, &configs);

Configs are created in this line of code: https://github.com/jblindsay/whitebox-tools/blob/739c6854d5617e34fe5f696b14e862566e1249f5/whitebox-tools-app/src/tools/lidar_analysis/lidar_idw_interpolation.rs#L884 And I don't see below any configs.projection assignment.

arojas314 commented 1 year ago

Is there any updates on this issue? I am running into the same error.

uasdev commented 1 year ago

Hello, I am running into the same issue. Is there a work around for this?