<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Tried your recommendation of GDALWARP, and received this error message:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ERROR 1: Too many points (529 out of 529) failed to transform, unable to compute output bounds.<o:p></o:p></p>
<p class="MsoNormal">Warning 1: Unable to compute source region for output window 0,0,2784,89882, skipping.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> CainĂ£ K. Campos <rupestre.campos@gmail.com> <br>
<b>Sent:</b> Tuesday, March 10, 2020 5:48 AM<br>
<b>To:</b> Bret Johnson <bret.johnson@utcg.com>; gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] Convert TIF to BIL<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Mar 10, 2020 at 8:47 AM CainĂ£ K. Campos <<a href="mailto:rupestre.campos@gmail.com">rupestre.campos@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Bret,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">based on the link sent <a href="https://www.softwright.com/faq/support/toposcript_bil_file_format.html" target="_blank">
https://www.softwright.com/faq/support/toposcript_bil_file_format.html</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">looks like the .blw file is not just the .tfw file renamed, as  it should have other kind of parameters such pixel size, raster rotation. Check if your .blw matches the example in the link, if not you can easily create one with a .txt file
 renamed to .blw. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I believe that the .tfw should be renamed to .prj as described in doc, and check if formats match also in the .prj generated with documented<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">In order to reproject raster to decimal degrees you should use gdalwarp with the<code><span style="font-size:10.0pt"> -</span></code><code><span style="font-size:10.0pt;font-family:"Arial",sans-serif">t_srs</span></code><code><span style="font-size:10.0pt">
</span></code><code><span style="font-size:10.0pt;font-family:"Arial",sans-serif">flag, and choose a degree projection like EPSG:4326, you may do it before translating to .BIL , like:</span></code><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><code><span style="font-size:10.0pt;font-family:"Arial",sans-serif">gdalwarp -t_srs EPSG:4326 input.tif output.tif</span></code><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><code><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Caina</span></code><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, Mar 9, 2020 at 8:23 PM Bret Johnson <<a href="mailto:bret.johnson@utcg.com" target="_blank">bret.johnson@utcg.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Based on that, it looks like my program requires coordinates in decimal degrees and my files are not in that format.  How do I force the output into the correct (decimal degrees) format?<br>
<br>
-----Original Message-----<br>
From: nhv <<a href="mailto:nhv@meganet.net" target="_blank">nhv@meganet.net</a>> <br>
Sent: Monday, March 9, 2020 9:56 AM<br>
To: Bret Johnson <<a href="mailto:bret.johnson@utcg.com" target="_blank">bret.johnson@utcg.com</a>>; Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>>;
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
Subject: Re: [gdal-dev] Convert TIF to BIL<br>
<br>
This might help<br>
<a href="https://www.softwright.com/faq/support/toposcript_bil_file_format.html" target="_blank">https://www.softwright.com/faq/support/toposcript_bil_file_format.html</a><br>
<br>
---- Original Message ----<br>
From: "Bret Johnson" <<a href="mailto:bret.johnson@utcg.com" target="_blank">bret.johnson@utcg.com</a>><br>
Sent: 3/9/2020 11:08:20 AM<br>
To: "Jeff McKenna" <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>>, "<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>" <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
Subject: Re: [gdal-dev] Convert TIF to BIL<br>
<br>
The program is made by SoftWright and is called TAP, which is used for radio propagation analysis.  The relevant parts of the error message are:<br>
<br>
Note that 1 file(s) were found that were not indexed because of errors.  There could be errors in the data file(s), or these could be files that are NOT topo data files that the program tested to try to index and failed.<br>
<br>
Like, I said, pretty generic and not very helpful.<br>
<br>
-----Original Message-----<br>
From: gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>> On Behalf Of Jeff McKenna<br>
Sent: Monday, March 9, 2020 8:50 AM<br>
To: <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
Subject: Re: [gdal-dev] Convert TIF to BIL<br>
<br>
Hi Bret, what is the exact error message?<br>
<br>
-jeff<br>
<br>
<br>
--<br>
Jeff McKenna<br>
MapServer Consulting and Training Services <a href="https://gatewaygeomatics.com/" target="_blank">
https://gatewaygeomatics.com/</a><br>
<br>
<br>
<br>
<br>
On 2020-03-06 8:19 p.m., Bret Johnson wrote:<br>
> 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">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">gdal-dev@lists.osgeo.org</a><br>
> Cc: Bret Johnson <<a href="mailto:bret.johnson@utcg.com" target="_blank">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" target="_blank">
http://www.spatialys.com</a> <br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
> <br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</body>
</html>