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.

  • 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 '17 at 15:25
  • I believe you can find something useful among these answers gis.stackexchange.com/search?q=gdal+mosaic – user30184 Mar 22 '17 at 15:29
  • I've already scanned through dozens threads, but could not find anything relative to TAB/TIF pair – Jacobian Mar 22 '17 at 15:33

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.

| improve this answer | |
  • 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 '17 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 '17 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. – Antonio Falciano Mar 22 '17 at 15:43
  • Thansk! By files you mean just tif files or tab files as well? – Jacobian Mar 22 '17 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. – Antonio Falciano Mar 22 '17 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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