How can I show raster pixels with NoData value in QGIS?

In ArcMap there is a button to choose the color for the NoData value. Is there something like this in QGIS?

enter image description here

  • Please change the accepted answer.
    – jpmc26
    Oct 17 '18 at 1:58

You can display raster NoDataValue in LayerProperties / Transparency tab by unchecking the "No data value" checkbox and "adding values manually" to the "transparent pixel list" table (green plus sign). After adding a value one need to change the "Percent Transparent" column to zero. After Applying this you can see the padded values as black.

  • 1
    Worked for me. In the Transparency Tab, Transparency band must be set to none, then untick the nodata value, then copy it into the From and To columns of the Transaprent pixel list. Set its transparency to 0. Then go back to Style and add the NoData value to the colour table.
    – obrl_soil
    Nov 16 '16 at 0:11
  • Doesnt work for me
    – user32882
    Mar 21 '19 at 10:11
  • Nor me. nodata is greyed out regardless of other settings. Using the additional no data field blanked everything except the nodata.
    – user24007
    Oct 12 '21 at 1:06
  • I suspect my problem involves a grid null value so big it cannot be used by QGIS (~2 x 10 ^ 34).
    – user24007
    Oct 12 '21 at 3:37

Someone can correct me, but i believe this is not possible in QGIS (yet).
The Nodata value of a raster are per default always transparent.

Your only alternative would be to make a copy of your raster (Save-as rightclick menu or the gdalwarp tool in the menubar) and leave the nodata-value unclassified.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.