Breach single cell pits and Breach depression least cost error

50 views
Skip to first unread message

Maxime Maltais

unread,
Jan 10, 2023, 10:08:09 AM1/10/23
to WhiteboxTools
Hi there,

I have been trying to get around some issues i've had with Breach single cell pits and Breach depression least cost, but I can't seem to find what is the source of the problem. I'm trying to execute the tools on a DEM ( https://diffusion.mffp.gouv.qc.ca/Diffusion/DonneeGratuite/Foret/IMAGERIE/Produits_derives_LiDAR/21L/21L10NE/MNT_21L10NE.tif ). The DEM is in tif format and I am using ArcGIS Pro, version 2.9. Whenever I run the tools, I get a succes message, but the outputs results are either a full black raster with infinite min-max values or a raster with values located ecclusively on the edges of the raster, see attachment. Anyone has any idea of what I'm doing wrong? Some colleages ran into similai issues but it seemed ok for others. 

Thank you,

MaximeBDLC_issue.PNGBSCP_issue.PNG

Whitebox Geospatial Inc

unread,
Jan 10, 2023, 10:44:35 AM1/10/23
to Maxime Maltais, WhiteboxTools

The issue seems to be with the GeoTIFF file rather than the tool(s). Whitebox does not support all forms of the GeoTIFF format and there is something about this particular file that is unsupported. I cannot quite put my finger on what the issue is right now, but I’ll look into it further. How did you create the file? I saved it as a new GeoTIFF in QGIS (backed by GDAL, I should think) and it worked fine.

A picture containing blur

Description automatically generated

 

Regards,

 

John

Maxime

--
You received this message because you are subscribed to the Google Groups "WhiteboxTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to whiteboxtool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/whiteboxtools/a5921321-5e5e-4c77-a311-a525cca550fbn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maxime Maltais

unread,
Jan 10, 2023, 10:55:15 AM1/10/23
to WhiteboxTools
Hi Jhon, 

thanks very much for such a quick response.  So  I could copy the raster to an other tif format as a work around? I used the datas directly provided by the Ministry of Forest of the province of Quebec, so I don't know all of the processing behing the datas. You can find it on their website at https://www.foretouverte.gouv.qc.ca/ under catalog/Lidar/ Index de téléchargement. I'm not sure if there is an english translation for their platform though.

Jean-François Bourdon

unread,
Jan 10, 2023, 11:31:59 AM1/10/23
to WhiteboxTools
Hi,
The GeoTIFF we publish are compressed using the DEFLATE algorithm with predictor 2 which is currently an unsupported predictor in WhiteboxTools (see https://github.com/jblindsay/whitebox-tools/pull/187 for more details). To use those files with WBT, you simply need to resave them with GDAL (or ArcGIS) into GeoTIFF either without any compression or with LZW/DEFLATE with predictor 1.

If you have more questions regarding our files and WBT you can contact me directly at the MRNF.

Jean-François Bourdon

Whitebox Geospatial Inc

unread,
Jan 10, 2023, 11:37:28 AM1/10/23
to Jean-François Bourdon, WhiteboxTools

Jean-François Bourdon

unread,
Jan 10, 2023, 11:49:14 AM1/10/23
to WhiteboxTools
Yes, there is code for it currently, but it doesn't do the right thing, hence my PR.

Maxime Maltais

unread,
Jan 10, 2023, 1:23:36 PM1/10/23
to WhiteboxTools
Everything seems to work just fine on my end as well with the copied raster. Thanks so much for the support!
Reply all
Reply to author
Forward
0 new messages