blankblank blank


Archive for January, 2008 Page 2 of 3



Simple Online Form For Creating An Embeddable Google Map

GEarthHacks has a new online tool called YourMap that simplifies the job of creating embeddable Google Maps. Enter the name, address (or lat/long), zoom level, desired map dimensions, and other information into an online form, and YourMap automatically generates the code to embed it in your website; you don’t even need your own Google Maps API key. Here’s an example for a great hole-in-the-wall Thai restaurant in Flagstaff, AZ:

View in Google EarthDownload Google Earth
Powered by YourMap from Google Earth Hacks.

Via All Points Blog.

Addendum: Just noticed that the location plotted above for the restaurant about 500 yards south of the actual location. Double-checked the address used for geocoding, and it was entered correctly, so you may want to check the results of YourMap’s geocoder to make sure it’s right.




Reprojecting Raster Imagery I

There’s no really complete free substitute for a good commercial program like Global Mapper or FME for reprojecting raster images from one coordinate system to another. Not only do they support virtually every projection and image format, but they also have batch conversion capabilities for converting many images in a single step. But they’re expensive, and overkill if you only have a small number of basic conversions you want to do; for those basic needs, there are some simple and free alternatives.

MicroDEM – I’ve covered the use of MicroDEM before for converting graphic files with worldfiles into GeoTiffs with both georeferencing and coordinate system data embedded. But you can also use it to convert GeoTiffs in the NAD27 datum to the program’s native WGS84 projection using essentially the same process: open the NAD27 GeoTiff, zoom it to 1:1, and then export it as a GeoTiff in WGS84 (read the original post for more info). That’s all it does, change the datum – it maintains the projection of the original (i.e. if you start with UTM or geographic, the two projections it supports, that’s what you’ll wind up with). And it converts indexed color files to RGB, making the filesize lot larger. But for the common need to convert USGS topo maps from NAD27, like those freely available from Libremap or other sources, to WGS84, it may be enough for some people.

gdalwarp – Part of the GDAL library (included in FWTools), this command-line raster re-projection utility is extremely powerful, but its command-line nature makes it less than user-friendly, and learning the proper codes and syntax for converting from one coordinate system to another isn’t my idea of fun. If you have one conversion you do on a regular basis, setting up a batch file might make that process a bit easier, but a graphical user interface would be even better. Note to command-line fans: Yes, I’m a wimp.

MapWindow – I include MapWindow because, not coincidentally, it does include a graphic interface to gdalwarp that supports many projections/datums, and which also appears to have a limited batch processing capability. Access it using the GIS Tools => Image => Reproject Images menu function (make sure GIS Tools is enabled in the Plugins menu). The image file and coordinate system selections (source and target) are straightforward. The one problem is … I haven’t been able to get it to work on my system. After going through the whole process, I keep getting an error message saying that image export through GDAL isn’t supported. But I’m guessing this will be fixed reasonably soon, and as a bonus, MapWindow also comes with a really nice shapefile coordinate system converter.

But until MapWindow is functional, I’ve found another free program that re-projects georeferenced image files from one coordinate system to another, supports a fair number of datums and projections, and supports export in indexed color format. More on that in the next post.




Downloadable US Bathymetric And Fishing Maps

The National Geophysical Data Center has downloadable bathymetric and fishing maps for most of the US ocean coastline (not intended for navigation purposes, though). Map catalogs are broken down by geographic region, and maps are available in both small PDF preview format and large format downloads in either PDF or TIF format (the latter in gz compression, which will require an unzipping program like WinZip or ZipGenius). If you need the PDF maps in a editable graphic format, you can use a program like PDFCreator to “print” the PDF maps in full-resolution TIFF, JPG, or PNG formats. Maps are also not georeferenced (not GeoTiffs or GeoPDFs); I hope to cover some basic georeferencing options soon.

capeann

The full sets of data available from the NGDC include more bathymetric and relief data, geology/geophysical data, and earthquake/volcano data.




Clickable World Climate Map

The World Weather Map lets you click on a location, and get a plot by month of temperature (max/average/min), rainfall, and average number of hours of sunshine. A fourth tab supposedly gives you “Experiences”, a link list of things to do at that location, but the list sometimes includes activities a long distance (> 100 miles) from that location. You can also add an overlay showing what areas are “Hot”, “Warm” or “Wet” for a particular month.

The main website’s map is also flawed in that there’s no zoom feature, so for areas where the climate can change dramatically over a short distance (like the American Southwest), getting the climate for the exact location you want can be difficult to impossible. (1/24/2008: Fixed by the good folks at WorldReviewer; see the comment below) Oddly enough, there’s a widget version of this map that does include a zoom feature, and which can be embedded in any website, as below. Click and drag to move the map; click on +/- to zoom in and out; click on any point to get the climate data for that location:

For more specific climate data, downloadable for any location on the Earth, try some of the applications described in this post. Via GoogleMapsMania.




More Degree-Minute-Second Converter Options

A commenter on yesterday’s post asks if I know of any programs that will convert a list of coordinates in degree-minute-second format to decimal degrees. Haven’t tried it, but Zonums Software has a free Excel macro called Ectrans that will supposedly convert a spreadsheet list of coordinates in degree-minute second format to decimal degrees (and vice versa), or one set of coordinates at a time manually. It also converts spreadsheet coordinate lists from lat/long to UTM and back again. If you don’t have Excel, it might work with OpenOffice, since I hear rumors that OpenOffice may support some VBA macros.

Zonums also has online decimal-DMS converters for converting one point at a time, adding them to a text box that can be copied and pasted as a CSV spreadsheet file; points can also be plotted on a Google Maps interface. There are also online lat/long to UTM converters accessible from the same page, but they don’t appear to be working currently.

From comments in yesterday’s post, Dylan Beaudette describes how to do it using FWTools (command-line, run away! ;-):

1. convert DD -> DMS:
cs2cs +proj=latlong +datum=NAD83 +to +proj=latlong +datum=NAD83

2. convert DMS -> DD
cs2cs -f “%.6f” +proj=latlong +datum=NAD83 +to +proj=latlong +datum=NAD83

If you invoke the command as listed above (without reference to a data stream) you will get an interactive prompt. This approach is a lot more useful when you have a file full of coordinates, or a stream of coordinates:

cs2cs +proj=latlong +datum=NAD83 +to +proj=latlong +datum=NAD83 < DD_coords.txt > DMS_coords.txt

Also from the comments, for programmers, Aron Rubin posts code for a C function that will do the conversion.




Free Neighborhood Boundary Shapefiles

Zillow has released shapefile boundaries describing neighborhoods in 150 major cities, grouped by state. Available under the Creative Commons license, they’re free for general use in any application as long as you attribute Zillow as the source. Coverage is still limited; in Arizona, only the two largest urban areas (Phoenix and Tucson) are included. But Zillow encourages submissions of neighborhood boundaries for cities not currently covered in their database, and will work on including those submissions after they’re verified. Projection is geographic (latitude/longitude), NAD83.

phoenix neighborhoods

Phoenix neighborhoods (created with the TatukGIS Viewer)

Via the James Fee GIS Blog.




Degree-Minute-Second To Decimal Degree Converter

Someday, working with latitude/longitude in degrees-minutes-seconds will be a bad memory, and everyone will use either decimal degrees or rational metric units like UTM exclusively. But until that happy day, if you need a desktop utility to easily convert from degrees-minutes-seconds to decimal degrees or degrees-minutes (and the opposite direction as well), you may find it useful to have the Degree/Minute/Second Converter from Mentor Software handy. It’s a small download at 307 kB with a full installer, but make note of which Start Menu folder it puts the shortcuts in (default is Accessories). Operation is dead simple:

dms

Enter the degrees, minutes and seconds separated by spaces, set the number of decimal places with the Precision option, select the result type you want, then click Convert. It converts in the opposite sense directly, i.e. enter a decimal degree and have it converted to degrees-minutes or degrees-minutes-seconds. In this latter mode, checking Min/Sec Blank Fill removes the zero from the front of single digit minutes and seconds (e.g. 1 instead of 01 minute, 4.2 instead of 04.2 seconds). Can’t quite figure out what Degree Zero Fill does, though ….




Six Free Must-Have Applications For Your Handheld GPS

The logs for this blog indicate a lot of visitors have come by recently looking for information on using handheld GPS units (Christmas gifts, perhaps?). So for those newcomers, I thought I’d do a quick roundup of the free applications I’ve found to be among the best for a variety of handheld-GPS-related tasks, along with some worthy alternatives that also have something to offer. Most are Windows-only, but a few are also available in native format for Mac and Linux, and may well run in Mac under Parallels/Boot Camp and Linux under WINE.

Downloading/uploading point and track information

While most handheld GPS units let you create waypoints, routes and sometimes tracks directly, their small size and limited input options can make this difficult and time-consuming. These programs speed up and simplify that process tremendously.

Best: GPS TrackMaker

While I use this program mainly for downloading and uploading data files in a variety of formats (GPX, KML, SHP, MMC and more), the program has many more useful options for creating waypoints and tracks, simplifying existing tracks, altitude profiles, even interfaces for working with Google Earth and Google Maps. Supports 160 different GPS models. More info.

Worthy alternative: EasyGPS

GPS TrackMaker has lots of features, but that can make the interface a bit cluttered. If you’re only interested in working with GPX or LOC files, EasyGPS is a clean, simple alternative that also supports GPS models from a wide range of manufacturers. More info.

GPS datafile creation with maps

If you want to create waypoints and routes by drawing them directly on a map, here are some options.

Best: USAPhotoMaps

USAPhotoMaps downloads USGS topo data, and one-meter black and white aerial imagery for the entire United Sates (0.25-meter color aerial imagery for some urban areas), and lets you create highly-accurate waypoints for export to a GPS unit. Route and track support, on the other hand, are pretty weak. More info.

Worthy alternative: You can always create points and tracks in Google Earth for export to a GPS (see below), or use an online service like TakItWithMe (more info) Digipoint 2 (more info) or quikmaps (more info) to take data created in a Google Maps interface to GPX format. But be aware that positions in Google Earth or Google Maps can be off slightly from their true position.

GPS file format conversion

There are dozens of formats for saving geographical data, but most GPS utilities only support a few of them. So it’s handy to have software that will convert from your obscure and bizarre format to one in more common use.

Best: GPSBabel

GPSBabel is the sine qua non of GPS format converters, handling more different formats than any other program I know. It’s a command line program, but comes with a GUI that, while not fully user-friendly allows reasonably easy access to most of its conversion capabilities. More info.

Worthy alternative: ITNConv

ITNConv handles a few formats that GPSBabel doesn’t, and also allows editing/creation of GPS data files in a Google Maps interface. More info.

Digital globe

Best: Google Earth

You probably already have Google Earth installed on your computer for general geographic browsing and exploration. But you may not know that in addition to its native data formats of KML/KMZ, Google Earth can also directly open GPX and LOC data files exported from your GPS, so you can see where you’ve been. If you want to connect your GPS directly to Google Earth, you could pay $20/year for Google Earth Plus, but I have a series of posts on getting Google Earth Plus features for free, along with some features GE+ doesn’t support, like exporting data from Google Earth to your GPS.

Worthy alternative: WorldWind

WorldWind was one of the earliest digital globes, and open source if that’s important to you. In some ways, it’s superior to Google Earth in its support of GPS, with built-in support for real-time GPS positioning in the main version. The free GPS2WorldWind plugin adds extensive support for importing and exporting data from/to Garmin GPS units, and limited support for other units through the NMEA interface.

Photo geotagging

Geotagging refers to embedding location data into the header of picture files, so that you can associate the picture with the location it was taken. Many free programs will do this automatically by matching a photo’s timestamp to the time you were at that location according to your exported GPS data. Geotagged photos can then automatically be displayed in a map program at the location they were taken; for example, Picasa can take geotagged photos and convert them into a KML file for display in Google Earth.

Best: GeoSetter

I’ve covered a fair number of photo geotagging tools on this blog (see the series listing at the end of the above post), but GeoSetter has the best mix of features and usability of any of them. More info.

Worthy alternative: GPicSync

Although it lacks some of GeoSetter’s features, GPicSync has a simpler interface that might appeal to some, and has some features that GeoSetter lacks. For example, you can associate audio and video files with the pictures, so that GPicSync will create links in the Google Earth / Google Maps files that link to the audio/video. More info.

GPS satellite visibility

The accuracy with which your GPS unit can determine your position depends partially on the number of satellites visible in the sky from your location, and also their geometry, i.e. how widely spaced apart in the sky they are. The more satellites there are, and the more widely-spaced they are in the sky, the more accurate your GPS-determined position will be. While most GPS units will give you a rough estimate of how accurate the current position it’s giving you is, they won’t tell you when during the course of a day you can expect to get the best (or worst) accuracy. For that info, try this program:

Best: Trimble Planning

Trimble Planning will calculate the relative degree of geometry-dependent accuracy for a specific location, and how it changes with time, presenting this data in easy-to-interpret graphic and tabular formats. A more detailed description of the program can be found here; more advanced users might want to take a look at my post on how to incorporate the effects of GPS satellite blockage by terrain on these accuracy calculations.

Worthy alternative: Live Satellites Google Earth UI (no longer available)
I used to link to Paul Seabury’s Live Satellites Google Earth UI, but that application has been pulled. Orbiting Frog has a similar application that is a bit more difficult to use, since you have to manually enter satellite parameters, but it’s still worth a look; see this post at the Google Earth blog for more info.

Looking for a GPS application that isn’t listed above? Try doing a search on this blog – I’ve covered dozens of different GPS applications in addition to the ones I’ve highlighted above.