Re: [gdal-dev] RFC 15: Band Masks vs #5621

2014-08-21 Thread Ivan Lucena
Hi Even, From: even.roua...@spatialys.com To: lucena_i...@hotmail.com Subject: Re: [gdal-dev] RFC 15: Band Masks vs #5621 Date: Wed, 20 Aug 2014 20:39:29 +0200 CC: gdal-dev@lists.osgeo.org I am trying to help a developer how wants to use VRTs as an intermediary between a GeoRaster

Re: [gdal-dev] RFC 15: Band Masks vs #5621

2014-08-21 Thread Even Rouault
Selon Ivan Lucena lucena_i...@hotmail.com: Hi Even, From: even.roua...@spatialys.com To: lucena_i...@hotmail.com Subject: Re: [gdal-dev] RFC 15: Band Masks vs #5621 Date: Wed, 20 Aug 2014 20:39:29 +0200 CC: gdal-dev@lists.osgeo.org I am trying to help a developer how wants

Re: [gdal-dev] RFC 15: Band Masks vs #5621

2014-08-20 Thread Even Rouault
Ivan, You can declare a mask flag to 0 to indicate that this is a per-band mask band. This is perfectly legal. You might decide either to set NBITS=1 as metadata to that mask band, or promote it to full 8 bit (0-0, 1-255). As far as which format natively supports that, I can't think to any.

Re: [gdal-dev] RFC 15: Band Masks vs #5621

2014-08-20 Thread Ivan Lucena
Even, Date: Wed, 20 Aug 2014 10:28:14 +0200 From: even.roua...@spatialys.com To: lucena_i...@hotmail.com CC: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] RFC 15: Band Masks vs #5621 Ivan, You can declare a mask flag to 0 to indicate that this is a per-band mask band

Re: [gdal-dev] RFC 15: Band Masks vs #5621

2014-08-20 Thread Even Rouault
I am trying to help a developer how wants to use VRTs as an intermediary between a GeoRaster and a PNG, in order to produce thumbnails. In that case, does the VRT needs to describe the mask band so that the PNG's driver will received the filtered image, with the zeroes regions masked out?

[gdal-dev] RFC 15: Band Masks vs #5621

2014-08-19 Thread Ivan Lucena
That question is probably for Even, Frank or some the developer of drivers that support mask band. I am working on ticket #5621 and trying to adapt it to the RFC 15 but I am not quite sure that I am getting it right. In GeoRaster, I can have a bitmap mask band that can be applied to all bands,