How do I stop nodatavalue pixels in a GeoTiff from being transparent ?

classic Classic list List threaded Threaded
2 messages Options
Acmen_Lee Acmen_Lee
Reply | Threaded
Open this post in threaded view
|

How do I stop nodatavalue pixels in a GeoTiff from being transparent ?

osgEarth Sample - GDAL Driver NoData:
Demonstrates the use of a file with nodata.  The white circle is a GeoTiff which has 0 marked as NoData so the black borders in the original imagery should show up as transparent.

A lot of pixels is a GeoTiff which has 0 marked as NoData so the pixels in the original imagery turned up to show up as transparent. I want to keep it from being transparent. How do I do that? thanks!

osgearth:
osgearth

global mapper:
global mapper
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How do I stop nodatavalue pixels in a GeoTiff from being transparent ?

Acmen,
That is the correct behavior. Nodata pixels resolve as alpha=0 (transparent). If you don't want that, you need to change the nodata record in the GeoTIFF. I believe you can use

gdal_translate -a_nodata none ...

Glenn Waldron / Pelican Mapping