Re: [gdal-dev] GDAL appears to ignore NoDataValue

2012-02-29 Thread Ophir Yoktan
Thanks! it works a follow up "bonus" question I get the same problem when trying to create a mosaic by warping to images to a new dataset. my code is basically copied from the "GDAL Warp API Tutorial" page http://www.gdal.org/warptut.html and adding: psWarpOptions->padfSrcNoDataReal = new double

Re: [gdal-dev] GDAL appears to ignore NoDataValue

2012-02-29 Thread Even Rouault
Selon Ophir Yoktan : Several errors : 1) The NoDataValue and HideNoDataValue elements are only valid under the VRTRasterBand element, not SimpleSource 2) You want to change SimpleSource to ComplexSource, and add a 0 element in it. (well basically rename your current NoDataValue to NODATA. > I'm

[gdal-dev] GDAL appears to ignore NoDataValue

2012-02-28 Thread Ophir Yoktan
I'm trying to build a mosaic, and I rely on the NoDataValue feature to treat some parts of the image as transparent. However, it appears that GDAL doesn't work as expected. I also created a very simple test case using a vrt dataset and gdal_translate - and I get the same results (that is - the 2nd