-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
gdal_rasterize all_touched not working as expected #12129
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
Comments
I can confirm with GDAL 3.10.2 on Windows . Maybe easier to check the result with an 8-bit output And the geometry as WKT is |
No that's a box containing all data, not the actual geometry. That would be: |
Correct. By the same I learned that OpenJUMP creates a polygon geometry for rasters that it opens. That was what I accidentally copied. |
What is the bug?
gdal_rasterize with the option all-touched no longer correctly converts all pixels.
The image below shows:
The problem does not occur in version 3.5.1, but occurs in version 3.6.2 and current master.
Steps to reproduce the issue
Command to reproduce
gdal-rasterize.zip
Versions and provenance
Additional context
originally reported by @Sachagobeyn in watem-sedem/pywatemsedem#55
The text was updated successfully, but these errors were encountered: