[gdal-dev] GeoTIFF NoData

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[gdal-dev] GeoTIFF NoData

Hi all,

Sorry if my question has been discussed here before. I followed 1 Answer/Option 2 of this post to convertĀ  an image (GeoTIFF) external pixels RGB(255,255,255) to NoData.

So, I used the following command line using GDAL_TRANSLATE :

gdal_translate -a_nodata 255 -of GTiff /home/julierme/Desktop/amazonia_sar/amapa/IMG/covmingrad/CSKS4_20161223204711_CSKS4_20170124204700_3_CovMinGrad_rgb.tif /home/julierme/Desktop/amazonia_sar/amapa/IMG/covmingrad/CSKS4_20161223204711_CSKS4_20170124204700_3_CovMinGrad_rgb_nodata.tif

The reason I am doing this is because I had a boundary/border RGB(255,225,225) in the image. So, I converted the entire image (255,255,255) pixels to NoData. Now, here are my two issues:

1 - Even after setting the InputTransparentColor = FFFFFF in Geoserver as mentioned in the post Option2, the image border is not transparent. The border, got an ALPHA_BAND=0.0 surrounding the image. Instead of an ALPHA_BAND, I need a NaN value for the border. So, I need to completely remove the ALPHA_BAND and set the border to NaN.

2 - What could I do to convert to nodata only the RGB(255,255,255) image external pixels, without affecting the internal ones?

Thank you for your time in advance.


gdal-dev mailing list
[hidden email]