[gdal-dev] Nodata Raster Calue
Matt Wilkie
matt.wilkie at gov.yk.ca
Tue Jul 22 13:36:09 EDT 2008
Hi SriRam,
Try gdalwarp like this:
gdalwarp -dstnodata 255 infile.tif outfile.tif
If NoData is not defined in the source image in manner gdal
automatically recognises you'll need to specify it like so (assuming
pure black is NoData):
gdalwarp -srcnodata 0 -dstnodata 255 infile.tif outfile.tif
You can also use RGB quoted triplets:
gdalwarp -dstnodata "255 0 120"
cheers,
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------
SriRam.PrasadBhasker at rmsi.com wrote:
>
> I have a Jp2 16 Bit Image [ GreyScale ]
>
> This has a NoData value ... I want to change the NoData value to White
> Color
>
> Can anyone let me know the Syntax for getting this done thru GDAL_TRANSLATE
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list