<div dir="ltr"><div><div><div><div><div><div><div>Hi all,<br><br></div>Sorry if my question has been discussed here before. I followed 1 Answer/Option 2 of this <a href="https://gis.stackexchange.com/questions/41472/setting-transparency-in-an-sld-file-for-a-4-channel-geotiff">post </a>to convertĀ  an image (GeoTIFF) external pixels RGB(255,255,255) to NoData.<br><br></div>So, I used the following command line using GDAL_TRANSLATE :<br><br>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<br><br></div>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:<br><br></div>1 - Even after setting the <code>InputTransparentColor</code> = 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.<br><br></div>2 - What could I do to convert to nodata only the RGB(255,255,255) image external pixels, without affecting the internal ones?<br><br></div>Thank you for your time in advance.<br><br></div>Julierme<br><div><div><div><br><br><div><div><br><br></div></div></div></div></div></div>