[mapserver-users] Mapserver 1.1.0 WCS ENVI Binary File with accompanying ENVI header
Peter Willis
pwillis at aslenv.com
Tue Feb 5 08:36:08 PST 2013
Hello,
I think the file issue is resolved.
It turns out the server was actually passing me three (3) separate
files in multipart MIME sequence.
Your comment about that made me look closer at what was coming back via the
web browser.
Files come in this sequence:
1.) the WCS metadata
2.) the ENVI header (HDR) file
3.) the ENVI data (IMG) file
I was being a bit thick I guess.
I kept wondering why the web browser was trying to give me the same file 3
times
on each GetCoverage request.
A second issue related to this is how to get mapserver to *Name* the files
properly. Each file sent by the mapserver is called 'wcs' with no file
extension.
This is why I thought I was getting the same file 3 times.
Is there a mapfile variable that can be set up to set the file names and
extensions
if ENVI multiband format is selected as the FORMAT for GetCoverage?
Thanks for pointing out the multi part MIME thing.
You probably saved me days of debugging and unproductive spinning.
Peter
---------------------------------------------------------------------------
Peter,
Hopefully Stefan Meissl will answer. If not, poke me and I'll try to figure
it out.
For some versions of WCS multi-part responses are supported as long as GDAL
knows the files are associated. Either in a zip or multi-part mime.
I'm a bit rusty on this now though.
Best regards,
Frank
On Mon, Feb 4, 2013 at 3:55 PM, Peter Willis <pwillis at aslenv.com> wrote:
> Hello,
>
> I have set up a WCS server using mapserver.
>
> I can retrieve a Float32 ENVI 'img' BSQ file just fine and select
> specific bands.
>
> However, I DO NOT get an accompanying header (.HDR) file with the
> binary data download.
>
> how do I request an HDR file for my data?
> Is there some special map file secret to this?
>
> I thought of making a 'pseudo' GDAL driver that wraps gdal_translate
> and ZIP together but I'm hoping there is an easier fix.
>
>
> Thanks,
>
> Peter
>
>
>
> _______________________________________________
> 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
More information about the MapServer-users
mailing list