Question

How to change the min or max from a raster

  • 26 February 2021
  • 1 reply
  • 4 views

Badge +1

Hi

 

I would like to mosaic some geotifs togheter to make a DTM from a larger area.

Some of the geotif tiles have a min of -9999. If you load the tile in QGIS it's completely blank. If you check the rastervalue's they give the correct height. So it's only cosmetic, the data is ok.

 

You can adjust the min in QGIS, resulting in a much better result.

 

I tried to change the min of the geotifs with a negative min in FME.

 

I use the rasterbandminmaxextractor followed by a simple tester.

So far it works, but now I want to change the min to 0.

 

I used the attributemanager and I used the rastercellvaluereplacer. They both don't work. I've also tried the rasterinterpretationcoercer a bit, but it changed the values.

 

How should I fix this ?

 

 


1 reply

Userlevel 5
Badge +29

-9999 usually indicates that the cells is No Data. Have a look at the RasterBandNodataSetter

Reply