Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-07-06 Thread Even Rouault
Le mercredi 06 juillet 2016 16:17:32, Daniele Romagnoli a écrit : > Hi Even, > thanks I'm already using the SPARSE_OK=TRUE to create an empty tiff > and afterwards warp input files on that with SKIP_NOSOURCE=YES. > I have already updated the ImageIO-EXT's TIFFImageReader to deal with > tile/strip w

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-07-06 Thread Daniele Romagnoli
Hi Even, thanks I'm already using the SPARSE_OK=TRUE to create an empty tiff and afterwards warp input files on that with SKIP_NOSOURCE=YES. I have already updated the ImageIO-EXT's TIFFImageReader to deal with tile/strip with zero byte count. Final question: Starting from which GDAL version, SPAR

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-07-06 Thread Even Rouault
Daniele, > has this improvement also being backported on previous versions (as an > instance 2.1.x, 2.0.x)? No, trunk only. You could as well use the SPARSE_OK=TRUE creation option to avoid writting blocks at all. Provided that your reader knows how to deal with tile/strips with a 0 byte count

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-07-06 Thread Daniele Romagnoli
Hi Even, has this improvement also being backported on previous versions (as an instance 2.1.x, 2.0.x)? Cheers, Daniele On Tue, May 10, 2016 at 3:29 PM, Even Rouault wrote: > Le mardi 10 mai 2016 09:22:19, jramm a écrit : > > Hi > > I have made changes to FillEmptyTiles so that if nodata is set

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-05-10 Thread Even Rouault
Le mardi 10 mai 2016 09:22:19, jramm a écrit : > Hi > I have made changes to FillEmptyTiles so that if nodata is set, then it > will always fill with nodata, otherwise 0. > > I have attached the raw diff...I have no idea how to submit a change > request/review etc? > > fillempty_nodata.diff >

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-05-10 Thread jramm
Hi I have made changes to FillEmptyTiles so that if nodata is set, then it will always fill with nodata, otherwise 0. I have attached the raw diff...I have no idea how to submit a change request/review etc? fillempty_nodata.diff

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-05-06 Thread Even Rouault
Le vendredi 06 mai 2016 13:33:36, jramm a écrit : > NoDataValue is set on a band level and FillEmptyTiles operates at a dataset > level. > > I've never heard of a geotiff with different nodata per band - is this even > possible, or would it be reasonable to take the nodatavalue of the 1st band > a

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-05-06 Thread jramm
NoDataValue is set on a band level and FillEmptyTiles operates at a dataset level. I've never heard of a geotiff with different nodata per band - is this even possible, or would it be reasonable to take the nodatavalue of the 1st band and use this to initialise the empty tiles block? Then there

Re: [gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-05-03 Thread Even Rouault
Le mardi 03 mai 2016 20:23:49, jramm a écrit : > Hi > > When writing geotiffs, if I dont write blocks they will automatically be > filled on close by the FillEmptyTiles. > It appears that this will only fill with zeros - is it possible to make it > fill with the no data value instead? You can als

[gdal-dev] Geotiff FillEmptyTiles with no data value?

2016-05-03 Thread jramm
Hi When writing geotiffs, if I dont write blocks they will automatically be filled on close by the FillEmptyTiles. It appears that this will only fill with zeros - is it possible to make it fill with the no data value instead? This is potentially a huge time saver when processing a large, fairly