[gdal-dev] RFC 15: Band Masks vs #5621
Ivan Lucena
lucena_ivan at hotmail.com
Thu Aug 21 05:09:17 PDT 2014
Hi Even,
> From: even.rouault at spatialys.com
> To: lucena_ivan at hotmail.com
> Subject: Re: [gdal-dev] RFC 15: Band Masks vs #5621
> Date: Wed, 20 Aug 2014 20:39:29 +0200
> CC: gdal-dev at lists.osgeo.org
>
> >
> > 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?
>
> You need to explicitely declare mask bands in the VRT. See the VRT
> documentation for that. But that will just declare the existence of the mask
> band, and will not do any processing such as zeroing masked regions.
You are right. GDAL can copy the mask from one dataset to another, depending on the driver.
But there is no way to indicate that you want the result of the masking, not in the API, not on command line tools.
Maybe we should add that to the wish list.
Regards,
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140821/58f098d1/attachment.html>
More information about the gdal-dev
mailing list