[mapserver-users] WMS GeoTIFF query with multiple bands

Frank Warmerdam warmerdam at pobox.com
Wed Aug 28 14:51:53 PDT 2013


Chheang Be,

You will want IMAGEMODE INT16 which takes a quite distinct code path which
supports multiple bands.

You may also need to use FORMAT "GDAL/GTiff" in your OUTPUTFORMAT
declaration for this to work properly, I don't exactly recall.   The BANDS
declaration may also be of use if you want to control the band selection.

See:
  http://mapserver.org/mapfile/outputformat.html

https://github.com/mapserver/msautotest/blob/master/gdal/rawmode_multiband.map

Best regards,
Frank



On Wed, Aug 28, 2013 at 2:39 PM, geoguru <chheangbe at gmail.com> wrote:

> How would you go about serving a 16bit GeoTIFF with n number of bands and
> be
> able to have the WMS query return all the bands in the GeoTIFF.  I've
> attempted to use the GDAL/GTiff driver to return tiffs, but could only
> return a max of 4 bands using the RGBA ImageMode.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/WMS-GeoTIFF-query-with-multiple-bands-tp5074859.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130828/4c9cd91e/attachment.htm>


More information about the MapServer-users mailing list