is there a utility that will allow me to read tif.aux.xml files directly in mapinfo

1,390 views
Skip to first unread message

GeoGRAFX

unread,
Jan 23, 2015, 5:05:58 PM1/23/15
to mapi...@googlegroups.com
I've downloaded a bunch of images from the USGS National MapData Base.  The georeference information for the .tif files is contained in the .tif.aux.xml and .tif.txt files.  Is there any utility that can read that directly into mapinfo?  I don't want to have to re-register 304 maps!!

Also have a bunch of geopdf files - again does anyone know of a way to read those into mapinfo directly?

TIA
Barbara

Andrew Harfoot

unread,
Jan 26, 2015, 11:56:40 AM1/26/15
to mapi...@googlegroups.com
Hi Barbara,

I suspect that the open source GDAL library will be able to do this, building GeoTiff files that MI can open from the downloaded TIFs and the accompanying .aux files. You can get a GDAL install as part of QGIS (www.qgis.org), or on its own using the OSGeo4W package installer (http://trac.osgeo.org/osgeo4w/). For the latter, choose 'Express Install' and then the GDAL package.

You need to use GDAL from the command line, and once GDAL is installed you should have an icon for the OSGeo4W shell. Open this and change to the directory containing the downloaded TIF images:
cd /d c:\ImageDirectory
(replace ImageDirectory with the actual location)

Then test the conversion of an image:
mkdir .\GeoTiff
gdal_translate "ExistingImage.tif" ".\GeoTiff\TestImage.tif"
(Replace ExistingImage.tif with the name of one of the downloaded TIF files)

You should see a new subdirectory called GeoTiff appear in the folder containing your downloaded images and in it, a new tif file called TestImage.tif. Test that this opens with the correct georeferencing in MapInfo. If it does then you can batch convert all the images as follows. It's probably best to delete the test image before running this.
for %i in (*.tif) do gdal_translate "%i" ".\GeoTiff\%i"
This will create copies of all the downloaded TIFs, with embedded georeferencing that MapInfo should be able to read, in the GeoTiff subdirectory.

GDAL should also be able to read GeoPDFs, but I've not tried this myself. Have a look at this page (http://www.gdal.org/frmt_pdf.html). You could try the following (with no guarantees though):
cd /d c:\ImageDirectory
mkdir .\GeoTiff
for %i in (*.pdf) do gdal_translate "%i" ".\GeoTiff\%~ni.tif"

I hope this helps!

Andy
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Andy Harfoot

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

Tel:  +44 (0)23 8059 2719
Fax:  +44 (0)23 8059 2849

www.geodata.soton.ac.uk

CDR Group

unread,
Jan 27, 2015, 12:36:14 AM1/27/15
to mapi...@googlegroups.com
Listers
 
Can someone point me towards tab2tfw.mbx?
It used to be on the directionsmag site but searches have drawn a blank....
 
Thanks
 
John Ievers
CDR Group
www.cdrgroup.co.uk
Tel: 01433 621282
Fax: 01433 621292
Specialists in Geographic Information Systems

CDR Group is the trading name of Contract Data Research Ltd.
Registered address Eccles House, Eccles Lane, Hope, Hope Valley, S33 6RW.
Registration No. 1972326
VAT No. GB373 3117 67

Ross Nixon

unread,
Jan 27, 2015, 12:54:01 AM1/27/15
to mapi...@googlegroups.com, sa...@cdrgroup.co.uk
I have it (I'm a hoarder), but don't use it. I made my own program with an AutoIt script, for some reason.
On my Dropbox now www.dropbox.com/s/ujl507vqmx0lz9v/Tab_2_tfw.MBX

Ross

On Tuesday, 27 January 2015 18:36:14 UTC+13, CDR wrote:


Tony Pilkington

unread,
Jan 30, 2015, 4:16:37 AM1/30/15
to mapi...@googlegroups.com
Barbara, have you had any replies apart from Andrew’s?
 
It would help if you could could share a sample .tif.txt file , a .tif.aux.xml  and maybe a file id for a particular .tif file.
If you are north of 60 degrees and in polar bear territory there is probably little vector data available that is useful.
I have access to an old geotif reader that Maurice Nadal and I wrote just under a decade ago which could be updated.
 
Tony
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4800 / Virus Database: 4257/8983 - Release Date: 01/23/15

Reply all
Reply to author
Forward
0 new messages