[mapserver-users] Gdal for esri .hdr labelled .bil raw raster
Claude Philipona
claude.philipona at camptocamp.com
Tue Aug 28 10:03:01 PDT 2001
I'm trying to use Mapserver 3.5 with gdal:
MapScript Version (Aug 1, 2001)
MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=JPEG INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
I know that gdal is working, because I'm able to resample .tif rasters on the fly
into new projections.
I would like to use some ESRI .hdr Labelled .bil raw raster file via gdal (to
read GTopo 30 data). According to gdal doc, this format is supported and to open
a dataset the file with the image file (often with the extension .bil) has to be
selected.
I could have it worked. I get this error:
Fatal error: MapServer Error in msDrawRaster(): Unrecognized or unsupported image
format.
I have a file named "alps.bil" (raw raster) and "alps.hdr" in the data folder.
Here is part of the .map file
LAYER
NAME "alps"
DATA "alps.bil"
TYPE RASTER
STATUS ON
PROJECTION
"proj=latlong"
"ellps=clrk66"
END
END
Here is the .hdr file:
file_title = alps
data_type = raster
grid_cell_registration = center
map_projection = Lat/Lon
left_map_x = 2.00000000000
right_map_x = 18.00000000000
upper_map_y = 52.00000000000
lower_map_y = 43.00000000000
number_of_rows = 1080
number_of_columns = 1920
grid_size = 0.00833333333
elev_m_unit = meters
min__value = -16
max__value = 4570
elev_m_min = -16
elev_m_max = 4570
elev_m_missing_flag = -500
number_of_display_colors = 256
data_value_unit = elev_m
data_byte_order = little_endian
Any idea how to have this work, and , more generally how to use gdal to open
format supported only by this extension?
Thanks
Claude Philipona
More information about the MapServer-users
mailing list