MapServer 5.0.0, GDAL 1.5.0 and HDF5 1.6.6 problem
Maarten Plieger
plieger at KNMI.NL
Tue Jan 22 05:22:30 PST 2008
Hi All,
I am trying to display HDF5 files directly in MapServer without converting them. To test the HDF library with GDAL, I first converted a subset (gdal_translate -of GTiff HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/image_preview meteopreview.tif). This tiff can be viewed with MapServer, so i assume the HDF5 library is correctly implemented in GDAL.
Now I want to directly open the HDF5 file in mapserver. This gives me an error. (" The server encountered an internal error or misconfiguration and was unable to complete your request.")
The Apache error log looks like this:
Appache Error Log:
[Tue Jan 22 11:45:34 2008] [error] [client 145.23.130.25] malformed header from script. Bad header=szFilenname /nobackup/users/pl: mapserverhdf.cgi
[Tue Jan 22 11:45:34 2008] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT'
And the mapfile looks like this (part of):
MapFile:
LAYER
NAME preview
DATA 'HDF5:/nobackup/users/plieger/mapdata/METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5://image1/image_preview'
#DATA 'meteopreview.tif'
DUMP TRUE
TYPE RASTER
PROCESSING "BANDS=1"
PROJECTION
proj=nsper
lon_0=0.000000
lat_0=0
h=35807.250000
a=6378.134766
b=6356.750488
END
END
(When i switch the data statement to tiff it works, otherwise it gives me an error (see the # sign).)
I use a script that sets the LD_LIBRARY_PATH and the LD_RUN_PATH to the correct path, this script calls in turn mapserver. Therefore I think that there is no problem with the libraries. It also works with all the other libraries. I have to use this script because I have no admin rights, (and i won't get them).
Can anyone help me with this problem, or had the same problem?
Thanks in advance,
Maarten
Software:
- UMN MapServer 5.0.0
- GDAL 1.5.0
- HDF5 1.6.6
- proj 4.6.0
- geos 3.0.0
- szip 2.1
- zlib 1.2.1
- GDAL has been compiled without CURL...
GDALINFO:
gdalinfo METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5:
SUBDATASET_0_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://classification1/classification_image
SUBDATASET_0_DESC=[2512x2512] //classification1/classification_image (8-bit unsigned character)
SUBDATASET_1_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://classification1/classification_table
SUBDATASET_1_DESC=[2x2] //classification1/classification_table (Unknown)
SUBDATASET_2_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/calibration/calibration_table
SUBDATASET_2_DESC=[2x2] //image1/calibration/calibration_table (32-bit floating-point)
SUBDATASET_3_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/image_data
SUBDATASET_3_DESC=[2512x2512] //image1/image_data (8-bit unsigned character)
SUBDATASET_4_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/image_preview
SUBDATASET_4_DESC=[251x251] //image1/image_preview (8-bit unsigned character)
SUBDATASET_5_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://overview/dataset_sample
SUBDATASET_5_DESC=[3x628x628] //overview/dataset_sample (8-bit unsigned character)
SUBDATASET_6_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://visualisation1/color_palette
SUBDATASET_6_DESC=[255x3] //visualisation1/color_palette (8-bit unsigned character)
WMS Request:
mapserverhdf.cgi?SERVICE=WMS&VERSION=1.0.0&REQUEST=GetMap&BBOX=90,85,180,90&LAYERS=preview&WIDTH=900&HEIGHT=900&SRS=EPSG:4326&STYLES=
Error from browser:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
[no address given] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache/2.2.0 (Linux/SUSE) Server at bhw047.knmi.nl Port 80</address>
</body></html>
More information about the MapServer-users
mailing list