Re: [gdal-dev] Setting the noData flag in a GeoTIFF

2013-12-04 Thread Jukka Rahkonen
Jonathan Moules warwickshire.gov.uk> writes: > > > Hi Jukka,Good point. In fact, that's one of the reasons I want to set the noData flag. I figure when compressing hopefully the compressor will see that it is "noData" and will treat it differently from the way it would an actual value (which re

Re: [gdal-dev] Setting the noData flag in a GeoTIFF

2013-12-04 Thread Jonathan Moules
Hi Jukka, Good point. In fact, that's one of the reasons I want to set the noData flag. I figure when compressing hopefully the compressor will see that it is "noData" and will treat it differently from the way it would an actual value (which results in things like your mentioned 255,255,254) so I

Re: [gdal-dev] Setting the noData flag in a GeoTIFF

2013-12-03 Thread Jukka Rahkonen
Jonathan Moules warwickshire.gov.uk> writes: > > > > Hi Even, > That worked great. > It figures that I'd tried about 6 different permutations, including a few without "-hidenodata"; but none of them was the right one it seems. > > > It's no problem recreating the tifs as they're small test t

Re: [gdal-dev] Setting the noData flag in a GeoTIFF

2013-12-03 Thread Jonathan Moules
Hi Even, That worked great. It figures that I'd tried about 6 different permutations, including a few without "-hidenodata"; but none of them was the right one it seems. It's no problem recreating the tifs as they're small test tifs that takes a few seconds to process. Many thanks! Jonathan On 3

Re: [gdal-dev] Setting the noData flag in a GeoTIFF

2013-12-03 Thread Even Rouault
Selon Jonathan Moules : > Hi List, > I have a question about setting a value as "noData" in GeoTIFFs. > > I'm creating a Geotiff with this two stage process (mosaicing a lot of > tiles together): > > gdalbuildvrt -hidenodata -srcnodata 255 -vrtnodata 255 -input_file_list > >> tiff_list.txt 255.v

[gdal-dev] Setting the noData flag in a GeoTIFF

2013-12-03 Thread Jonathan Moules
Hi List, I have a question about setting a value as "noData" in GeoTIFFs. I'm creating a Geotiff with this two stage process (mosaicing a lot of tiles together): gdalbuildvrt -hidenodata -srcnodata 255 -vrtnodata 255 -input_file_list >> tiff_list.txt 255.vrt > > >> gdal_translate -of GTiff -co