Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-31 Thread Marius Jigmond
Thanks for all the suggestions. The following website: http://sites.google.com/site/bpederse/caliwms gave me an idea of how to treat the JPEG artifacts. Going back to our previous discussion, the OpenJPEG implementation of JPEG2000 creates very clean (at the boundary of data/nodata) compressed ima

Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-30 Thread Even Rouault
Le samedi 29 janvier 2011 22:40:20, Marius Jigmond a écrit : > The link should work for another day or so (automatic server purge). I > can re-upload it if you don't get the chance to download it. Warning: > 1.2GB. > https://www.twdb.state.tx.us/filetxfr/emaillinkdownload.aspx?id=&FileTransf > erID

Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-29 Thread Marius Jigmond
The link should work for another day or so (automatic server purge). I can re-upload it if you don't get the chance to download it. Warning: 1.2GB. https://www.twdb.state.tx.us/filetxfr/emaillinkdownload.aspx?id=&FileTransferID=289562464 -marius -- Sent from Ubuntu On Sat, 2011-01-29 at 22:25

Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-29 Thread Even Rouault
Le samedi 29 janvier 2011 22:17:45, Marius Jigmond a écrit : > Just realized that earlier I hit the wrong reply button (apologies). > > The COPY_SRC_OVERVIEWS yielded a wild result. Here's what I did: > 1. gdaladdo -ro s70rgb321.tif 2 4 8 16 32 64 128 (note: input GTiff is 3 > band with nodata=0 a

Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-29 Thread Marius Jigmond
Just realized that earlier I hit the wrong reply button (apologies). The COPY_SRC_OVERVIEWS yielded a wild result. Here's what I did: 1. gdaladdo -ro s70rgb321.tif 2 4 8 16 32 64 128 (note: input GTiff is 3 band with nodata=0 and no mask) 2. gdal_translate -co COMPRESS=JPEG -co TILED=YES -co JPEG_

Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-29 Thread Even Rouault
Le samedi 29 janvier 2011 20:28:02, Marius Jigmond a écrit : > Thanks Even. I ran some more tests but that didn't quite work for me. I > still get those noisy pixels after gdal_translate (in QGIS I set value 0 > for transparency and those pixels stand out). However, I noticed the > following: > >

Re: [gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-29 Thread Even Rouault
Le samedi 29 janvier 2011 15:47:43, Marius Jigmond a écrit : > Hi Everyone, > > I am having some trouble figuring out why adding JPEG compression to a > RGB GeoTIFF results in Nodata pixel triplets becoming data pixel > triplets. Is this expected behavior due to the noisy nature of JPEG > compress

[gdal-dev] JPEG compressed GeoTIFF ignores Nodata

2011-01-29 Thread Marius Jigmond
Hi Everyone, I am having some trouble figuring out why adding JPEG compression to a RGB GeoTIFF results in Nodata pixel triplets becoming data pixel triplets. Is this expected behavior due to the noisy nature of JPEG compression or to the fact that these are border Nodata triplets? I know certain