1

I have a number of TAB and TIF files. They form a single coverage. What I want to do is to convert all of them into a single GeoTIFF file, using GDAL tools, but I do not know how. I looked through dozens of threads, tutorials and etc., and it seems like GDAL supports TAB and TIF files, though I could not find any real example.

3
  • Let's suppose I have such files - one.tab, one.tif, two.tab, two.tif and want to get output.tiff. What GDAL utility should I use for this purpose and how the command would look like?
    – Jacobian
    Mar 22, 2017 at 15:25
  • I believe you can find something useful among these answers gis.stackexchange.com/search?q=gdal+mosaic
    – user30184
    Mar 22, 2017 at 15:29
  • I've already scanned through dozens threads, but could not find anything relative to TAB/TIF pair
    – Jacobian
    Mar 22, 2017 at 15:33

1 Answer 1

2

You could make a virtual mosaic of all .tab and .tif files using gdalbuildvrt and then convert the resulting VRT file to GeoTIFF with gdal_translate:

gdalbuildvrt -input_file_list my_list.txt mosaic.vrt
gdal_translate mosaic.vrt mosaic.tif

where my_list.txt is the input file list.

7
  • Many thanks! Would you be so kind to clarify the format of my_list.txt file. Should files go one by one in a single line or in a column. And should I list there just tif files or file names without extension?
    – Jacobian
    Mar 22, 2017 at 15:36
  • And one tiny and I think the very last question - what if my tab files have coordinates in some local system and what I know about it is just proj4 formula. In other words I deal with a system which does not have a know SRID. Though, I know very well its proj4 formula
    – Jacobian
    Mar 22, 2017 at 15:40
  • @Jacobian The files should be listed one by one in a single column with their relative path and extension. They should also have projection info attached in order to be mosaicked correctly. Mar 22, 2017 at 15:43
  • Thansk! By files you mean just tif files or tab files as well?
    – Jacobian
    Mar 22, 2017 at 15:45
  • Alternatively, if all your files to be mosaicked are contained in the same directory, you can simply execute something like: gdalbuildvrt mosaic.vrt *.* without creating an input file list. Mar 22, 2017 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.