-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
GDAL Rasterize does not rasterize vectors with field 0 #20801
Comments
Author Name: Giovanni Manghi (@gioman) Cannot confirm on qgis master. Please attach sample data.
|
Author Name: Paolo Cavallini (@pcav) Done with the basins from exercise data. |
Author Name: Giovanni Manghi (@gioman) Paolo Cavallini wrote:
if you mean the training manual exercise data then I cannot see any "basins" layer. Better attach the data is giving you problems. |
Author Name: Paolo Cavallini (@pcav) |
Author Name: Giovanni Manghi (@gioman) I tested on both QGIS master and 2.8.1 on both Linux and Windows and in all cases, with the provided vector, there are no issues and the polygon with attribute = 0 are correctly rasterized to pixels with value = 0. If you use the tool and choose "byte" as type for output you must pay attention to the value used for nodata, as -9999 cannot fit in such type and so it is automatically changed to 0. |
Author Name: Paolo Cavallini (@pcav) Got it, thanks. Perhaps a better default could be chosen for nulls? |
Author Name: Giovanni Manghi (@gioman) maybe is better to change the default type to int16? |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 12695
Affected QGIS version: 2.8.1
Redmine category:processing/gdal
Assignee: Giovanni Manghi
All records are rasterized, except those with value of the selected field = 0. This seems inappropriate
The text was updated successfully, but these errors were encountered: