[gdal-dev] esri hdr format header

francesco francesco.pirotti at unipd.it
Wed Nov 23 08:00:31 EST 2011


Hello,
I looked all day for information regarding the following problem, but 
found none, so maybe the list can give me a hand:

When using GDAL C API reading and writing ESRI hdr files (floating point 
binaries), the output header is very different from the header of the 
input file (see examples below).
 From GDAL documentation ESRI files should be written using the first 
header example.  Am I missing some very obvious thing here? -Problem is 
that some GIS programs do not recognize the header in output from GDAL.
Thank you for you time!
Cheers,
Francesco Pirotti

Header in INPUT:
ncols         2000
nrows         2000
xllcorner     424000
yllcorner     4550000
cellsize      1
NODATA_value  -9999
byteorder     LSBFIRST
NODATA         -9999

Header in OUTPUT:

    BYTEORDER      I
    LAYOUT         BIL
    NROWS          2000
    NCOLS          2000
    NBANDS         1
    NBITS          32
    BANDROWBYTES   8000
    TOTALROWBYTES  8000
    PIXELTYPE      FLOAT
    ULXMAP         424000.5
    ULYMAP         4551999.5
    XDIM           1
    YDIM           1
    NODATA         -9999



-- 
**************************************************
*Francesco Pirotti*
Dep. TESAF
CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.pirotti at unipd.it <mailto:francesco.pirotti at unipd.it>
Work Phone: +39 049 827 2710
Work Cell.: +39 392 395 2067
**************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111123/e5e64662/attachment.html


More information about the gdal-dev mailing list