I am preparing data for inclusion into a geonetwork node, where the maps are displayed via geoserver.
The problem is that cells that have"no data" are displaying as black in the geotiff and I am would like the color to be set to white or transparent.
I am using ArcView and do not have access to either Spatial Analyst or 3D analyst.
I would prefer not to have to assign a new sld file and am presently using "Use colormap" when exporting from ArcGIS Desktop.
Best Answer
The gdal_edit utility allows changing the NODATA value without editing any pixels, just changing the metadata value.
will instruct programs to treat white (255) as nodata or null. It applies the same value for all bands of a multiband image, so if the above were an RGB image 255,255,255 becomes nodata.
gdalsetnull.py is a simple python script to set specified raster value NODATA, without creating a new raster. The easiest route to installing GDAL on windows is via OSGeo4W. Examples:
If you don't mind some processing overhead and creating a new image rather than editing in place there is also gdal_calc which allows actually changing the cell values rather than just updating the metadata.
Set values of zero and below to null:
Update 2020-Feb: added gdal_edit.