Solved

How to filter out raster (tiles) that contain only nodata?

  • 30 April 2018
  • 2 replies
  • 29 views

Userlevel 4
Badge +13

I'm using RasterTiler to create tiles from a larger raster. However, I noticed many resulting tiles contains only nodata values. How can I avoid writing out these tiles.

icon

Best answer by jdh 30 April 2018, 23:05

View original

2 replies

Badge +22

If you use the RasterBandMinMaxExtractor, you can test if both the min and max values equal the nodata value.

Badge +2

If you know what the Nodata values are in different bands, you can use the RsaterBandMinMaxExtractor to extract the min and max values of each band, and then using a Tester to filter out tile features whose min and max cell value both equal the no data value of that band.

 

e.g.

 

If nodata for an numeric raster is -9999, the following test will output nodata tiles as passed:

 

_band{0}.min = -9999

 

AND

 

_band{0}.max = -9999

So, only connect the Failed port to the writer will give you the desired result.

Reply