I posted earlier about a GUI for the libgeotiff utilities, called the GeoTIFF Tools GUI, that can extract georeferencing data and other metadata from GeoTiff files, and then re-embed the same information back into a Tiff file that has had that information stripped out of it, say by an image editing program. It’s a decent GUI marred by a few flaws:
1.You can’t use it to embed .tfw worldfile data into a TIF, even though the command line utility supports this function.
2. All the files need to be in a single folder.
3. There can’t be any spaces in the filename.
I’ve banged away for a few hours, and come up with an alternate GUI for the libgeotiff utilities, with the catchy name,”libgeoGUI.exe”. You can download the GUI along with the associated listgeo and geotifcp utilities at this link. Unzip the folder with the GUI and the associated files, and run the program libgeoGUI by double-clicking on it:
There are two sections to the program; in both sections, a button with “…” in it opens a file selection dialog window appropriate for that section. The top section takes a GeoTiff file, and extracts the georeferencing data and any other data into two files, each with the same filename as the GeoTiff, but without the .tif extension:
– A standard .tfw worldfile with only the coordinate data;
– A .gtf file that contains not just the coordinate data but any other metadata embedded in the Tiff header (e.g. map name, coordinate system, datum, etc.). The .gtf file is plain text, so you can examine it in any text editor; here’s a sample of one .gtf file for a USGS 1:24K topo map with a extensive amount of embedded metadata:
0 0 0
419610.38 3901689.53 0
2.4384 2.4384 0
GTModelTypeGeoKey (Short,1): ModelTypeProjected
GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
ProjectedCSTypeGeoKey (Short,1): PCS_NAD27_UTM_zone_12N
PCSCitationGeoKey (Ascii,25): “UTM Zone 12 N with NAD27”
PCS = 26712 (name unknown)
Projection = 16012 ()
Projection Method: CT_TransverseMercator
ProjNatOriginLatGeoKey: 0.000000 ( 0d 0′ 0.00″N)
ProjNatOriginLongGeoKey: -111.000000 (111d 0′ 0.00″W)
ProjFalseEastingGeoKey: 500000.000000 m
ProjFalseNorthingGeoKey: 0.000000 m
Datum: 6267/North American Datum 1927
Ellipsoid: 7008/Clarke 1866 (6378206.40,6356583.80)
Prime Meridian: 8901/Greenwich (0.000000/ 0d 0′ 0.00″E)
Upper Left ( 419610.380, 3901689.528)
Lower Left ( 419610.380, 3885203.505)
Upper Right ( 432770.425, 3901689.528)
Lower Right ( 432770.425, 3885203.505)
Center ( 426190.403, 3893446.517)
Unlike the previous GUI, this one creates both .tfw and .gtf files automatically, rather than giving you the choice of one or the other.
Section 2. of the program handles the opposite function, taking a geo-metadata file and embedding it into the appropriate Tiff file. In the “GeoTiff metadata” box, you choose either a standard Tiff worldfile (.tfw or .tifw) or a .gtf file created in section 1 with the full set of metadata. If you have a choice, use the .gtf file, since it typically contains more information. For “Input Tiff”, select the Tiff image file that you want to embed the metadata into; for “Output GeoTiff”, enter a name for the product Tiff file with the embedded data. Click on “Embed”, and it will be done.
There’s not a lot of error-checking in the program, but if you don’t do something right, there’s no real possibility of problems – nothing will happen, that’s all. Use at your own risk; if you find any bugs, let me know.
Want to download but cannot, not user friendly
Just tried the download link, and it works fine – not sure why you’re having a problem. Try it again …
This cool i great.
However, I have a bunch of Geotiffs for which I need to make tfw files for.
Coluld you change the utility to let several geotiffs to be handled at ones?
I’ll put creating a batch worldfile utility on my to-do list, but I don’t think I’ll be able to get to it anytime soon. Sorry.