cesium-terrain-builder icon indicating copy to clipboard operation
cesium-terrain-builder copied to clipboard

How to specify nodata\novalue ?

Open mrgloom opened this issue 6 years ago • 1 comments

For now I have DEM.tif with -350 value user for novalue and I need to perform preprocessing of DEM.tif by setting this values to 0 before tiling it with ctb, is there any way to specify novalue? maybe by gdal or by ctb itself?

mrgloom avatar May 29 '18 10:05 mrgloom

Use gdal_calc.py script to change default nodata values in raster. Consider that if the expression in parenthesis returns a boolean value, so you can use it like "if ... else ..." condition. For exp: <<<gdal_calc.py -A input.tif --outfile=output.tif --calc="(A>-350)*A" --NoDataValue=0.000 --co=COMPRESS=DEFLATE --co=PREDICTOR=3>>>

muratkendir avatar May 29 '18 10:05 muratkendir