[Qgis-user] change pixel value from no data to zero

Nyall Dawson nyall.dawson at gmail.com
Tue Dec 15 19:48:06 PST 2020


On Wed, 16 Dec 2020 at 13:36, Azzurra Lentini <azzurralentini at gmail.com> wrote:
>
> Hi to all,
> I am using qgis 3.16.
> I have a raster file that I created from shapefile of polygons (rasterize of GDAL) using a column that has the number 9 every where there are the polygons. This raster  has 2 different values in the pixel: not data and 9.
> I need to have 0 (zero) instead of no data.
> What can I do? Can I change the pixel value from no data to zero?
>  Before when I used the version 2.18 I could create directly with rasterize a file with these two values.

Run the "Fill NoData Cells" tool from the Processing Toolbox, and
enter "0" as the fill value.

Nyall


>
> Many thanks, Azzurra
>
>
>
> --
> Lecturer GIS University "Roma Tre"
> Consultant Environmental Risk Prevention and Hydrogeology
> AZZURRA LENTINI
> ++++++++++++++++++++++++++
> Italy Mobile Tel.: **(39) 338 24 40 676
> ++++++++++++++++++++++++++
> SKYPE azzurrahydro
> ++++++++++++++++++++++++++
>
> azzurralentini at gmail.com
>
> azzurra.lentini at uniroma3.it
>
> ++++++++++++++++++++++++++
> *Par respect pour l'environnement,*
>
> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the Qgis-user mailing list