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.
Best answer by jdh
View originalI'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.
Best answer by jdh
View originalIf you use the RasterBandMinMaxExtractor, you can test if both the min and max values equal the nodata value.
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.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.