[gdal-dev] Convert TIF to BIL

Bret Johnson bret.johnson at utcg.com
Mon Mar 9 16:22:29 PDT 2020


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?

-----Original Message-----
From: nhv <nhv at meganet.net> 
Sent: Monday, March 9, 2020 9:56 AM
To: Bret Johnson <bret.johnson at utcg.com>; Jeff McKenna <jmckenna at gatewaygeomatics.com>; gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Convert TIF to BIL

This might help
https://www.softwright.com/faq/support/toposcript_bil_file_format.html

---- Original Message ----
From: "Bret Johnson" <bret.johnson at utcg.com>
Sent: 3/9/2020 11:08:20 AM
To: "Jeff McKenna" <jmckenna at gatewaygeomatics.com>, "gdal-dev at lists.osgeo.org" <gdal-dev at lists.osgeo.org>
Subject: Re: [gdal-dev] Convert TIF to BIL

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:

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.

Like, I said, pretty generic and not very helpful.

-----Original Message-----
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Jeff McKenna
Sent: Monday, March 9, 2020 8:50 AM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Convert TIF to BIL

Hi Bret, what is the exact error message?

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services https://gatewaygeomatics.com/




On 2020-03-06 8:19 p.m., Bret Johnson wrote:
> Even:
> 
> 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.
> 
> -----Original Message-----
> From: Even Rouault <even.rouault at spatialys.com>
> Sent: Friday, March 6, 2020 1:15 PM
> To: gdal-dev at lists.osgeo.org
> Cc: Bret Johnson <bret.johnson at utcg.com>
> Subject: Re: [gdal-dev] Convert TIF to BIL
> 
> Bret,
> 
>> I have some GeoTIFF (.TIF) files that a program I'm using won't 
>> accept.  It will accept .BIL files and I'm using GDAL to try and do the conversion.
>> When I do, GDAL_TRANSLATE says it worked and it generates a few files 
>> (including a .BIL), but it doesn't create the .BLW file where all of 
>> the "real" data should be.  Is there some special GDAL_TRANSLATE 
>> option or use or some special format GeoTIFF data needs to be in for 
>> it to work properly and generate a .BLW file?
> 
> 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.
> 
> To generate a .blw file you can do:
> 
> gdal_translate your_input.tif tmp.tif -co TFW=YES
> 
> This will generate a tmp.tfw file. Just rename it to .blw and with the basename of your BIL output file.
> 
> Even
> 
> --
> Spatialys - Geospatial professional services http://www.spatialys.com 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> 

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list