[mapserver-users] Conditional BANDS directive based on underlying data

Peter Schmitt pschmitt at gmail.com
Tue Apr 30 13:30:48 PDT 2019


On Tue, Apr 30, 2019 at 4:41 AM Rahkonen Jukka (MML) <
jukka.rahkonen at maanmittauslaitos.fi> wrote:

>
> As Even already answered, using vrt files over the BGRN originals will
> work. We had a need to use both grayscale originals and vrt-falsified RGB
> versions (the only band pointing to red, green, and blue in .vrt) in the
> same service. We have only one tileindex in PostGIS, made from the tiff
> images, but it can be modified on-the-fly in the tileindex layer
>
>
>
> DATA "the_geom from (SELECT the_geom, fid, CASE WHEN filepath like
> '%_mv_%' THEN replace(filepath,'TIFF','vrt') ELSE filepath END AS location,…
>
>
>

Thanks Jukka & Even! A tile index of VRTs should work quite well for my use
case.

Cheers,
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190430/5fcbe356/attachment.html>


More information about the mapserver-users mailing list