Skip to main content
Question

Set NoData value for pixels outside a region in a GeoTIFF

  • Sep 11, 2025 8:06 AM UTC
  • 3 replies
  • 103 views

gbcfgeo2025
Contributor
Forum|alt.badge.img+4

Hi community,
how can I set a NoData value for the pixels that are located outside my geographic area of interest?
Attached you can find a GeoTIFF file:
https://we.tl/t-XjrxojSLZh

Thanks! 🙏

3 replies

takashi
Celebrity
  • Sep 11, 2025 8:43 AM UTC

Hi ​@gbcfgeo2025 ,

I checked the GeoTIFF raster you shared with FME, and found that Nodata is defined already, as shown in the screenshot below. Isn't this Nodata definition what you required?

Value of pixels in the transparent part is the Nodata value. 

 


gbcfgeo2025
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Sep 11, 2025 8:59 AM UTC

Yes, how can I assign a value of 0 or, for example, -10 to the NoData pixels? Can I set a non-existent (empty) value?


takashi
Celebrity
  • Sep 11, 2025 9:30 AM UTC

You can use RasterBandNodataSetter (Replace Cell Values: Yes) to assign a new Nodata value to the current Nodata pixels. However, the new Nodata value should be 0 or greater, since the band interpretation is GRAY16 (unsigned 16 bit integer). i.e. -10 is not available.