<div dir="auto">Bret,<div dir="auto"><br></div><div dir="auto">What does gdalinfo report on the file?</div><div dir="auto"><br></div><div dir="auto">Markus</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bret Johnson <<a href="mailto:bret.johnson@utcg.com">bret.johnson@utcg.com</a>> schrieb am Fr., 6. März 2020, 19:19:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Even:<br>
<br>
Thanks. That worked to create a World file, so I made it past the error message. It's still not importing correctly and the error message is so generic that it's useless (basically just says it doesn't like the data). I'll do some more playing.<br>
<br>
-----Original Message-----<br>
From: Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank" rel="noreferrer">even.rouault@spatialys.com</a>> <br>
Sent: Friday, March 6, 2020 1:15 PM<br>
To: <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
Cc: Bret Johnson <<a href="mailto:bret.johnson@utcg.com" target="_blank" rel="noreferrer">bret.johnson@utcg.com</a>><br>
Subject: Re: [gdal-dev] Convert TIF to BIL<br>
<br>
Bret,<br>
<br>
> I have some GeoTIFF (.TIF) files that a program I'm using won't <br>
> accept. It will accept .BIL files and I'm using GDAL to try and do the conversion.<br>
> When I do, GDAL_TRANSLATE says it worked and it generates a few files <br>
> (including a .BIL), but it doesn't create the .BLW file where all of <br>
> the "real" data should be. Is there some special GDAL_TRANSLATE <br>
> option or use or some special format GeoTIFF data needs to be in for <br>
> it to work properly and generate a .BLW file?<br>
<br>
I don't know which output driver you use (EHdr, ENVI etc.), but they aren't likely to produce a .blw worldfile as they will generate a text header file specific to the format.<br>
<br>
To generate a .blw file you can do:<br>
<br>
gdal_translate your_input.tif tmp.tif -co TFW=YES<br>
<br>
This will generate a tmp.tfw file. Just rename it to .blw and with the basename of your BIL output file.<br>
<br>
Even<br>
<br>
--<br>
Spatialys - Geospatial professional services <a href="http://www.spatialys.com" rel="noreferrer noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div>