EarthNC has a new Google Earth tool for taking points, paths, and polygons created in Google Earth, and either converting them to GPX or uploading them directly to a Garmin GPS (Windows only for the latter). Points are converted to points, paths to routes, and polygons to tracks. The downloadable KML file, full text instructions, and a demonstration video, are available at the website. They also have a simple online tool for converting KML files directly to GPX format by copying the KML file into the online text box and clicking a conversion button.
Archive Page 65 of 106
Yet another photo geotagging application, TagMyJPGs (aka EXIF Geotagging), this one with some helpful EXIF editing capabilities, and a nice Google Maps interface for geotagging. If you’re running Internet Explorer, the website has a link that lets you install the software automatically; otherwise, download and unzip the program into its own directory, then run the EXIFGeotagging.exe application:
![]()
TagMyJPGs lets you view much of the EXIF data embedded in the photo, and you can add/edit EXIF tags like the name, description, photographer, keywords, etc.(but not basic photo info like exposure, aperture, etc.). Tags in white or yellow are usually editable, those in gray not. Click on the Geo-Tags tab, and you can manually enter the coordinates where the photo was taken:
![]()
Click on the Geo-Tag with Google Maps button, and a Google Maps interface will open up with a marker indicating the camera position:
![]()
Click and drag the marker on Google Maps until it corresponds to the position of the camera when the photo was taken. You can also click on the object being photographed, and TagMyJPGs will mark the distance between camera and object with a yellow line, and enter the distance and bearing into the boxes at the top. The website claims that it will also draw the camera’s field of view, but I haven’t seen that in the several cases I tried. If the photo was already geotagged, it will be displayed at its geocoded position. Click “Copy Geo-Tag in EXIF Data”, and you’ll return back to the main program with the camera and object locations entered into the appropriate boxes.
If you’re satisfied, press the “save image and store EXIF data” button to write the coordinates and other entered data into the photo’s EXIF header. If the “preceed (sic) image name with datestamp” box is checked, the program will create a new image file with the date as a prefix to the original filename. If it’s not checked, it will overwrite the original with the new version.
The biggest drawback is the inability to geotag photos with a GPS track, but the author indicates on the website that he’s planning to add that feature in the future.
I’ve been posting about various ways to extract and embed geographic metadata from GeoTiffs, image files that have coordinate information in them that can be used by GIS software to georeference the image, i.e. assigning a geographic location to each pixel. Here’s an example of how extracting geographic metadata (like a worldfile) from a GeoTiff might be useful.
USGS 1:24K topo maps are freely available on the Internet from a variety of locations, like LibreMap or the USGS Seamless Server. Maps of forested areas often include green shading to indicate the presence of tree vegetation, but this coloration has always struck me as inaccurate, superfluous, and interfering with reading more critical map features. The US Forest Service apparently feels the same way, as they have removed that green coloring from their updated versions of these topo maps. But if you have a digital topo map with this coloration, it’s possible to get rid of it without losing the geographic metadata.
I’ll start with the USGS 1:24K topo map of Kendrick Peak in Arizona, available here among other locations. This map has a large amount of green shading on it, which was arbitrary to begin with, and is now unfortunately out-of-date because of a serious fire a few years ago:
![]()
If I open this map in virtually any editor and save it, the geographic metadata will be lost. So the first step is to extract and save the full metadata using the libgeoGUI along with the libgeotiff utilities. Next, I’ll open it up in Photoshop Elements. Yes, Photoshop isn’t a “free geography tool”, but Photoshop Elements is a lot cheaper than the full version while still containing much of its functionality. If you look around on eBay or Google, you can often find a brand-new copy of an older version of Photoshop Elements very cheaply, $20-30. And it’s a useful tool to have for general image manipulation, including the purpose I’ll be describing here.
To keep the filesize down, USGS GeoTiff topo maps are often saved in “indexed color” mode, where there’s a limited palette of colors assigned to each byte of pixel information. If it is indexed, Photoshop will show “(Index)” at the top of the image window; if you go to Image => Mode, “Indexed Color” will be checked as well. As long as we’re in Image=>, I’ll select “Color Table”:

This shows the full palette of colors used in this topo map, only 13 in this case. If I double-click on the green, the color I want to get rid of, the color picker comes up:

This lets me modify that index color to whatever I want; in this case, setting R, G and B to 255 will turn everything colored green in the original to white. If I now save the newly-modified image as a TIF with a different name, the map area from above, with lots of green, will now look like this:
![]()
All the green has been transformed to white, while all the other colors were unaffected. One could have at the same time modified any of the other colors to white to make them disappear, or modified them to a different shade. If you create a modified color scheme you plan to use again, you can save that palette using the “Save” button in the Color Table window.
For images with standard RGB color instead of indexed color, you can use the “Replace Color” function (Enhance => Adjust Color => Replace Color) to perform a similar function.
Opening and saving the map image in Photoshop removes the geographic metadata, but as long as you don’t resize the image, you can use the metadata of the original image to convert this modified image into a GeoTiff. In libgeoGUI, specify the .gtf metadata file created in the first step as the input worldfile, specify the modified Tiff image with the green removed as the input Tiff, and enter a name for the output GeoTiff. Click the “Embed” button, and you now have a GeoTiff with the same geographic metadata as the original, but modified to remove the green. And this approach will work not just with color modifications; as long as you don’t resize the image, you can modify it any way you want, drawing lines and shapes, putting other images on top of it, etc., and then embed the metadata into the saved image when you’re done.
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:
GeoTiff_Information:
Version: 1
Key_Revision: 0.2
Tagged_Information:
ModelTiepointTag (2,3):
0 0 0
419610.38 3901689.53 0
ModelPixelScaleTag (1,3):
2.4384 2.4384 0
End_Of_Tags.
Keyed_Information:
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”
End_Of_Keys.
End_Of_Geotiff.
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)
ProjScaleAtNatOriginGeoKey: 0.999600
ProjFalseEastingGeoKey: 500000.000000 m
ProjFalseNorthingGeoKey: 0.000000 m
GCS: 4267/NAD27
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)
Corner Coordinates:
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.
If you have a set of data points randomly distributed in space, and want to create a basic grid of evenly-spaced set of data points derived from this data (nothing fancy, like curve fitting or Kriging), QuikGrid is blazingly fast at this task. For example, here’s a evenly-spaced set of 625 elevation points (25 x 25) downloaded using the Zonums Terrain app, loaded into QuikGrid and displayed as a set of contours, and coloring representing different heights:

For the same area, I also downloaded a set of 625 randomly-selected points, which QuikGrid can automatically grid, contour, and display in a similar fashion, essentially instantaneously:

In some areas, the spacing between random points is too great for QuikGrid’s default distance cutoff tolerance, and it fills in those blanks with data values of zero. But by adjusting the tolerance, it’s possible to fill in some of those gaps:

Some gaps on the edges, where it has trouble filling in the remaining gaps. Comparing this contour image to the evenly-gridded surface at the top, there are some differences, especially in locations where values changes rapidly. But for a basic approximation, it’s not bad, and offers a quick-and-dirty alternative to more complicated gridding processes.
QuikGrid can also visualize grids in 3-dimensions as well:

Import formats supported by QuikGrid include data triplets with a variety of acceptable inputs for position, including variations on lat/long in degrees/minutes/seconds. If you have decimal lat/long, use the “Input metric data points” option, but be aware that the y-value will be longitude, and the x-value latitude, as in the examples above. It also accepts data point input in DXF and Submetrix format, as well as grid input in ER Mapper Raster, USGS 1-degree DEMs (aka 1:250K DEMs) and QuikGrid’s own grid format. Generated grids can be saved as xyz triplets, Surfer, QuikGrid and ER Mapper formats; you can also export contours and grids in DXF format, and grid surfaces in VRML. There are many other features, including a scripting language, and various display and labeling options.
The helpfile is comprehensive, and well-done, and includes instructions on running the program in Linux under the Wine emulator. The C++ source code is also available, released under the Gnu GPL.
The Zonums Terrain web app lets you define a terrain area, either by coordinates or extent in a Google Maps interface, and then downloads elevation data for that area in tabular format. The points for which elevation is given can be either randomly distributed, or evenly spaced in a cartesian grid. Select the area using the web app form:
![]()
With a random distribution, you only have to enter the total number of points; for a grid, enter rows and columns and the program spaces the points evenly. You can enter the limits of the area numerically in the Extent boxes; the app will check to make sure that min is < max (remember that for western longitudes, further west is more negative, which is the lower value). You can also zoom into an area in the Google Maps interface, click on “Take Extent From Map”, and have the extent coordinates filled in automatically based on the displayed area. When you’re done, click on Continue, then click on the “Click here to Start” button that pops up on the Google Maps interface. The points will be generated and plotted one at a time in a Google Maps interface. This may take a while depending on how many points there are, roughly two points per second. Once all the points are plotted…

… select the separator/delimiter for the tabular data, and the units for elevation, and click “Create Report”. The app will open a new window with the latitude/longitude/elevation data in tabular format, which will have to be copied into another application like a text editor if you want to save it. From there, you can convert it to other formats; for example, if you use a comma as the separator, and save it as a CSV file, you can use a program like MapWindow to convert it to a point shapefile.
The true spatial resolution of the dataset you download will obviously depend on the number of points you select, the area chosen, and the fundamental spatial resolution of the data source. The app gets elevation data from the USGS seamless dataset, and automatically uses the best data available for a specific location. For most of the world, that will usually be the SRTM 90-meter data; for the US, that will usually be NED, with best resolution ranging from 30 meters to as good as 3 meters in some locations. Click on the About button at the top of the App, and then on the “Elevations source” link to get the following table showing the areal bounds for various levels of spatial resolution of the elevation data:
| Data Source | Extent (West,South, East, North) | SRTM Contiguous South America 90-meter (3 arc_second) elevation data | -93.0000000022799,-55.9999999977599 to -32.0000000047199,14.9999999993999 |
|---|---|
| SRTM Contiguous North America 90-meter (3 arc_second) elevation data | -180.000000005944,10.0000000008001 to 179.999999979387,60.9999999987549 |
| SRTM.C_1TO19_3 | -180.000000012589,42.0000000054 to 179.99999997275,60.00000000468 |
| SRTM.C_20TO43_3 | -179.000000007803,12.0000000044402 to 169.999999977999,42.0000000032401 |
| SRTM.C_SA_3 | -180.000000007038,-55.9999999942731 to 11.99999998515,30.00000000228 |
| SRTM.C_AUS_3 | -38.9999999991601,-55.9999999964333 to 179.999999992079,14.0000000007598 |
| SRTM Contiguous U. S. 30-meter (1 arc_second) elevation data | -180.0000000144,-15.0000000012 to -64.000000005144,61.00000000488 |
| Tampa Bay Topobathy Meters | -82.8750000000039,27.3749999992218 to -82.3750000000017,28.1249999992111 |
| Delaware Bay Topobathy Meters | -75.4966666666296,38.7527777768336 to -74.858611111023,39.4458333324399 |
| California Topobathy Meters | -124.979166666747,34.9169444435586 to -120.599722222299,38.9499999990807 |
| Puget Sound Topobathy Meters | -124.979166666747,34.9169444435586 to -120.599722222299,38.9499999990807 |
| Afghanistan Digital Elevation Model | -123.16037037040032,47.043796296291 to -122.1996296295827,48.168055555640194 |
| NED Alaska 2 arc second (15 minute) elevation data | -180.00333333334379,50.996666666667622 to -129.99666666663225,72.00333333335108 |
| NED Contiguous U. S. 1 arc second elevation data | -125,23.9999999973783 to -65.9983333286253,49.9999999992314 |
| NED Hawaii 1 arc-second elevation data | -161.0016666667,17.9983333327742 to -153.998333333366,23.0016666659869 |
| NED Puerto Rico 1 arc-second elevation data | -68.0016666666668,16.9983333328051 to -63.9983333330132,19.0016666662453 |
| NED US territories 1 arc-second elevation data (Islands with east longitude) | 133.9994444444,4.99944444427556 to 164.000555555645,16.0005555550985 |
| NED US territories 1 arc-second elevation data (Islands with west longitude) | -171.000555555605,-15.0005555550877 to -168.999444444485,-13.999444444001 |
| NED Contiguous U. S. 1/3E arc second elevation data | -99.00055555556,24.9994444436157 to -65.9994444443037,49.0005555546217 |
| NED Contiguous U. S. 1/3W arc second elevation data | -125.00055555557,25.9994444419356 to -98.9994444424024,49.000555554697 |
| NED Hawaii 1/3rd arc-second elevation data | -161.00055555563,17.9994444438804 to -153.999444444485,23.0005555548894 |
| NED US territories 1/3rd arc-second elevation data (Islands with east longitude) | 133.9994444444,4.99944444427556 to 164.000555555645,16.0005555550985 |
| NED US territories 1/3rd arc-second elevation data (Islands with west longitude) | -171.000555555605,-15.0005555550877 to -168.999444444485,-13.999444444001 |
| NED Mount Saint Helens 1/9th arc-second elevation data | -123.01299382719976,46.125000000000036 to -121.98700617287425,46.400000000001157 |
| NED Puget Sound 1/9th arc-second elevation data | -125.010000000012,46.4899999990561 to -121.489999999997,48.5099999990705 |
| NED Harris City 1/9th arc-second elevation data | -95.999999999999957,29.470000000000034 to -94.874999999995126,30.220000000003267 |
| NED Lincoln, NE 1/9th arc-second elevation data | -96.886929999156592,40.617497603779 to -96.4858805843566,41.007559363379 |
| NED West Virginia 1/9th arc-second elevation data | -83.000185185189991,36.999802029771907 to -79.999820566814307,38.500185185192592 |
As a demonstration of their altitude information service, the Topocoding API website has a Google Maps demo. Click on a location on Google Maps, and get a placemark with altitude information for that point:

Click multiple points to get a path, and you can then generate a terrain profile for that path:

It uses a combination of SRTM-90 data (roughly 90-meter resolution), and GTOPO30 (1-kilometer resolution) where other data is missing. All continents except Antarctica are included.
They’ve also created an XML Google MyMaps tool that you can add to your collection of MyMaps mapping functions; click on this link, and then click on the appropriate button to add it to your MyMaps collection.
The USNaviguide website has an assortment of Google-Maps-based services for mapping the boundaries of various geographic parameters:
Zip Code: Enter a 5-digit zip code, or the first three digits of a zip code, and get a map of the area covered by that zip code. Or click on the map, and get a map of the all the zip codes in that area, with a placemark at the location you clicked on with the zip code for that area in the info bubble:

City/town boundaries: Enter a zip code, or click on the map, and get the boundary of the city/town jurisdiction for that area where appropriate:

County/FIPSCSA: Enter a zipcode, or click on a spot, and get a map similar to the one above for either a county or a FIPS (Federal Information Processing Standard) Core-Based Statistical Area, with a placemark near the center of the polygon with the relevant information, including code numbers.
There is also a US geocoders (get a latitude/longitude for an address), and a reverse geocoder (enter the lat/long or click on an address, and get back the closest addresses to a point).
The related Maps.Huge.Info site has links to most of the above services, but also a few more as well:
- US telephone area code maps
- Plotting zip codes by line boundary instead of overlay map (as at the top)
- Australian post codes
- A zip+4-based reverse geocoder
Finally, there’s a page of the free PERL code they use for converting a polygon of points into a Google Maps polygon.