-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pixel shift when going from FLT to TIF (multiple tools) #45
Comments
After doing a bit of digging, I found that it may be a feature and not a bug (partialy at least)... In the file related to reading and writing ArcBinary files (FLT), there is a part looking if the cellCornerMode is true (coordinates of a pixel at the top left) or false (coordinates of a pixel at the center): whitebox-tools/src/raster/arcbinary_raster.rs Lines 88 to 103 in 65a0794
For a reason that elude me, it seems it's always assumed that the coordinates of pixels are at their center ( |
I confirm that the bug is still present in v1.1.0. |
This bug has been corrected in release 1.2.0 by 1357e7a but is still present with ASCII files (was not in original issue but I just found out). |
Issue corrected with ASCII files by 616b3b8. |
Several tools shift by half-pixel the output raster:
The problem occurs when going from FLT to FLT or TIFF. If the input raster is TIFF, the output raster (TIFF or FLT) has the correct extent.
The text was updated successfully, but these errors were encountered: