<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jan,<br>
<br>
My mail used copy-paste so the spaces are the same as printed by
gdalinfo but I don't think that is important as it merely reflects
how gdalinfo prints the info. Actually I crossed this problem when
my gdalread mex lib showed that the nodata for the .bil case was
1e10 instead of the -9999.<br>
<br>
As another set of tests I converted the .bil to .asc with<br>
<br>
gdal_translate -of AAIGrid lixo.bil lixa.asc<br>
ERROR 6: lixo.bil, band 1: SetNoDataValue() not supported for this
dataset.<br>
Input file size is 250, 250<br>
0...10...20...30...40...50...60...70...80...90...100 - done.<br>
<br>
and here despite the error message the -9999 nodata value was
written in the output.<br>
<br>
On the other hand, converting the .asc to .bil (as in below) though
no warnings created a companion .hdr that does not have the 'nodata'
line<br>
<br>
gdal_translate -of EHdr lixo.asc lixa.bil<br>
Input file size is 250, 250<br>
0...10...20...30...40...50...60...70...80...90...100 - done.<br>
<br>
<blockquote
cite="mid:CAKMUAtAMyKHoe8dtcWUnhB4xdri+ucxu0s_17=pO6bOqw0cNRw@mail.gmail.com"
type="cite">Hi,
<div>There should certainly not be a space between Nodata and
Value as in your mail below.<br>
<div>There are two formats relevant for (at least) arcgis:</div>
<div>.bil. In this case the keyword is NoData</div>
<div>.flt. In this case the keyword is NoData_Value.</div>
<div>Capitalization, afaik, is irrelevant.</div>
<div>So you could modify the .hdr file as a test, and if it
works out as I indicated (NoData=-9999 in stead of NoData
Value=-9999) you can file a useful ticket.</div>
<div>.flt, by the way, is a float array which appears to be used
only as an intermediate (conversion) format, as in the
conversion tools: float to raster and vice versa.</div>
<div>Hope this helps a little,</div>
<div>Jan<br>
<br>
<div class="gmail_quote">On Wed, Mar 6, 2013 at 7:53 PM,
Joaquim Luis <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jluis@ualg.pt" target="_blank">jluis@ualg.pt</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
While playing a bit with Lastools I came across this
behavior. I create outputs in both .bil and .asc ESRI
formats<br>
The weird thing is that beeing the .hdr header file common
(I mean exactly equal) to both outputs the .bil format
does not recognize the nodata value.<br>
Is this a knwon issue? (GDAL trunk on Windows)<br>
<br>
gdalinfo lixo.bil<br>
ERROR 6: lixo.bil, band 1: SetNoDataValue() not supported
for this dataset.<br>
Driver: EHdr/ESRI .hdr Labelled<br>
<br>
<br>
C:\programs\lastools\data>gdalinfo lixo.asc<br>
Driver: AAIGrid/Arc/Info ASCII Grid<br>
Files: lixo.asc<br>
...<br>
Band 1 Block=250x1 Type=Float32, ColorInterp=Undefined<br>
NoData Value=-9999<br>
<br>
Joaquim<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>