<div dir="ltr"><div>Bret, <br></div><div><br></div><div>maybe gdal did not recognize source projection, try to run again with <span style="font-family:arial,sans-serif"><code>-s_srs</code><code> EPSG:XXXX</code>, where xxxx should be </span><br>the epsg code for your projection. Like:</div><div><code><span style="font-family:arial,sans-serif">gdalwarp -s_srs EPSG:XXXX -t_srs EPSG:4326 input.tif output.tif</span></code></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 11, 2020 at 1:39 PM Bret Johnson <<a href="mailto:bret.johnson@utcg.com" target="_blank">bret.johnson@utcg.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal">Tried your recommendation of GDALWARP, and received this error message:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">ERROR 1: Too many points (529 out of 529) failed to transform, unable to compute output bounds.<u></u><u></u></p>
<p class="MsoNormal">Warning 1: Unable to compute source region for output window 0,0,2784,89882, skipping.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> Cainã K. Campos <<a href="mailto:rupestre.campos@gmail.com" target="_blank">rupestre.campos@gmail.com</a>> <br>
<b>Sent:</b> Tuesday, March 10, 2020 5:48 AM<br>
<b>To:</b> Bret Johnson <<a href="mailto:bret.johnson@utcg.com" target="_blank">bret.johnson@utcg.com</a>>; <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [gdal-dev] Convert TIF to BIL<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></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" target="_blank">rupestre.campos@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Bret,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></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><u></u><u></u></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. <u></u><u></u></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<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></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:10pt"> -</span></code><code><span style="font-size:10pt;font-family:"Arial",sans-serif">t_srs</span></code><code><span style="font-size:10pt">
</span></code><code><span style="font-size:10pt;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><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><code><span style="font-size:10pt;font-family:"Arial",sans-serif">gdalwarp -t_srs EPSG:4326 input.tif output.tif</span></code><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><code><span style="font-size:10pt;font-family:"Arial",sans-serif">Caina</span></code><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></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:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;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><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>