[mapserver-users] Gdal for esri .hdr labelled .bil raw raster

Frank Warmerdam warmerdam at pobox.com
Tue Aug 28 11:44:10 PDT 2001


Claude Philipona wrote:
> 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?
> 

Claude,

This doesn't look like the GTOPO data I have seen before.  This is the
.hdr file I have with one of my GTOPO datasets:

BYTEORDER      M
LAYOUT       BIL
NROWS         6000
NCOLS         4800
NBANDS        1
NBITS         16
BANDROWBYTES         9600
TOTALROWBYTES        9600
BANDGAPBYTES         0
NODATA        -9999
ULXMAP        -99.99583333333334
ULYMAP        39.99583333333333
XDIM          0.00833333333333
YDIM          0.00833333333333

Quite different than yours!  You could use an editor to rewrite the .hdr file
in a form that is more ESRI like.  I imagine your hdr should look like:

BYTEORDER L
NROWS 1080
NCOLS 1920
NBANDS 1
NBITS 16
NODATA -500
ULXMAP 2
ULYMAP 52
XDIM 0.00833333333
YDIM 0.00833333333

Where did you get this GTOPO data?

Best regards,

---------------------------------------+--------------------------------------
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 Programmer for Rent




More information about the MapServer-users mailing list