[mapserver-users] How to serve individual RAW binary Bands from
WCS as floating point geotiff
pwillis at aslenv.com
Thu Jan 28 17:26:44 EST 2010
The definition of GEOTIFF_FLOAT is as follows:
I Added the MIMETYPE as shown to ensure that web browsers
would ask to save the file rather than just open it in an
image viewer from a temp file. (MS Windows...)
That part works fine.
Mostly I am concerned with extracting a specific 'band'
from the multi-band file. The server serves floating point
geotiff just fine.
Rahkonen Jukka wrote:
> How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?
> -Jukka Rahkonen-
> Peter Willis wrote:
>> I have been setting up a WCS map file for mapserver.
>> Problems arise when rasters are defined
>> as follows:
> NAME SomeDataChannel120
> STATUS OFF
> DEBUG ON
> TYPE RASTER ### required
> PROCESSING "BANDS=120"
> "wcs_label" "Data/stuff"
> "wcs_rangeset_name" 'bands'
> "wcs_rangeset_label" "Stuff thats mapped"
> "ows_extent" '-135 55 -121 46'
> "wcs_resolution" '0.08333333333333332 -0.083333333333333332'
> "ows_srs" 'EPSG:4326'
> "wcs_srs" 'EPSG:4326'
> "wcs_formats" 'GEOTIFF_FLOAT,GEOTIFF_INT16'
> "wcs_nativeformat" 'ENVI'
> # "wcs_bandcount" '563'
> "wcs_rangeset_axes" 'bands'
> DATA /data/stuff.img
> DUMP TRUE ### required
> I have 'wcs_bandcount' commented out because mapserver
> causes an internal error in the web server if I define the
> band count.
> I get floating point geotiff served with the following client request:
> ..however, I always only get the first band from the img file....
> Is there a problem with this setup?
> Do I need to define each band as a layer in the mapfile
> or will mapserver WCS allow the client to request a single
> Thanks for any enlightenment,
More information about the mapserver-users