[gdal-dev] Specifying NODATA values for the TMS (mini)driver

Even Rouault even.rouault at spatialys.com
Thu Jun 28 12:57:51 PDT 2018


On jeudi 28 juin 2018 19:42:53 CEST Lucian Plesea wrote:
> >> The contents of a <NoData> tag might be a comma separated list for
> >> multiband rasters.
> >> 
> >> 
> >> Would an enhancement request to support this be acceptable?
> >
> >Sounds reasonable to me. Do you intend to propose a PR for this ? Ideally
> >you would do the similar adaptation to the WMTS driver.
> >
> >Even
> 
> It is supported, for all WMS driver flavors.  The syntax is:<DataValue
> NoData="10"/>  or <DataValues NoData="10 20 30"/> for multiple band, with
> one value for each band.In addition to the NoData attribute, "min" and
> "max" are also handled the same way. 

Ah, thanks. This wasn't documented. Just added it.

Except it seems that ZeroBlock() just zeroes blocks, and doesn't use the 
nodata value.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list