<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
I looked all day for information regarding the following problem,
but found none, so maybe the list can give me a hand:<br>
<br>
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). <br>
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.<br>
Thank you for you time!<br>
Cheers, <br>
Francesco Pirotti<br>
<br>
Header in INPUT:<br>
<font color="#000000"><small><small><font face="Courier New,
Courier, monospace">ncols 2000</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">nrows
2000</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">xllcorner
424000</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">yllcorner
4550000</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">cellsize
1</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">NODATA_value
-9999</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">byteorder
LSBFIRST</font></small></small><br>
<small><small><font face="Courier New, Courier, monospace">NODATA
-9999</font></small></small></font><br>
<br>
Header in OUTPUT:<br>
<blockquote><small><small><font face="Courier New">BYTEORDER I</font></small></small><br>
<small><small><font face="Courier New">LAYOUT BIL</font></small></small><br>
<small><small><font face="Courier New">NROWS 2000</font></small></small><br>
<small><small><font face="Courier New">NCOLS 2000</font></small></small><br>
<small><small><font face="Courier New">NBANDS 1</font></small></small><br>
<small><small><font face="Courier New">NBITS 32</font></small></small><br>
<small><small><font face="Courier New">BANDROWBYTES 8000</font></small></small><br>
<small><small><font face="Courier New">TOTALROWBYTES 8000</font></small></small><br>
<small><small><font face="Courier New">PIXELTYPE FLOAT</font></small></small><br>
<small><small><font face="Courier New">ULXMAP 424000.5</font></small></small><br>
<small><small><font face="Courier New">ULYMAP 4551999.5</font></small></small><br>
<small><small><font face="Courier New">XDIM 1</font></small></small><br>
<small><small><font face="Courier New">YDIM 1</font></small></small><br>
<small><small><font face="Courier New">NODATA -9999</font></small></small><br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<font face="Arial, Helvetica, sans-serif" size="-3">
**************************************************<br>
<b>Francesco Pirotti</b> <br>
Dep. TESAF <br>
CIRGEO – Interdepartmental Research Center on Cartography
Photogrammetry <br>
Remote Sensing and G.I.S. <br>
University of Padova <br>
Web: <a
href="http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm">http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm</a>
<br>
Email: <a href="mailto:francesco.pirotti@unipd.it">francesco.pirotti@unipd.it</a>
<br>
Work Phone: +39 049 827 2710 <br>
Work Cell.: +39 392 395 2067<br>
**************************************************
</font> <br>
</div>
</body>
</html>