Importing GeoTiff files

535 views
Skip to first unread message

Joep Orbons

unread,
May 31, 2014, 5:34:36 AM5/31/14
to mapi...@googlegroups.com
Hi list-member,

Trying hard to import GeoTiff files. Normaly a TFW file is attached with the Geo-Info data but some GeoTiff files have the geo-info in the TIFF file header. Importing TIFF/TFW combi's are no problem. But I can't get the GeoTiff-header rasters imported in MI (12.5). When I try opening the file as a raster, it wants me to go through the complet georeferencing procedure. I checked the GeoTiff files with an ESRI viewer and the Geo-Info is present, the GeoTiffs are nicely where I expect them to be in the ESRI viewer. I then tried opening it in MI as an image file. I receive an error "The image control points cannot be in a straight line, Unable to open table xxxxx". MI does create a Tab file with 4 control point, these 4 controllpoints are identical so a proper georef is not possible. MI also produces a ghx file with a lot of xml coding, can't find any usefull info in that.

How do I import a GeoTiff file, using the Geo-Info in its header?

Hope some can help.

Best wishes,

Joep

Richard Greenwood

unread,
May 31, 2014, 5:55:22 PM5/31/14
to mapinfo-l
This is definitely a kluge but you can use gdal_translate with -co "TFW=YES" for example:
   gdal_translate -co "TFW=YES" geotiff.tif junk.tif
This will produce junk.tif and junk.tfw. You don't have to let it run all the way. You can control-c almost immediate and you will get the tfw which you can then rename and use with the original tiff.

You could also use gdalinfo to extract the information from the geotiff and then write your own tfw, but the above method is easier.

Rich



--
--
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.



--
Richard W. Greenwood, PLS
www.greenwoodmap.com

Joep Orbons

unread,
Jun 2, 2014, 1:59:18 AM6/2/14
to mapi...@googlegroups.com
Hi Richard,

Thanks for the link to this GDal series of programs. It took me a day to get the right program downloaden and installed and understand what it does and what the parameters mean, back to the old DOS days. The GDalInfo program gives me exactly the info I need, on screen and the GDal_Translate runs fast and does what it promisses. I can now translate the GeoTiffs and import them. I'll have to write a batch program to do the translation for me since I have to do about 310 GeoTiffs. And since there will be updated GeoTiffs every 3 or 6 months, I'll have to write a sort of automatic batch generator. Shouldn't be a problem.

Thanks for this solllution.

Joep.

Reply all
Reply to author
Forward
0 new messages