Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
docs:gis:gps:gpx_to_shp [2007/04/23 10:12] – billh | docs:gis:gps:gpx_to_shp [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== GPX to SHP ====== | ||
+ | ===== Summary ===== | ||
+ | This document outlines the procedure to use handheld GPS data in any GIS software. | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | ==== Hardware ==== | ||
+ | * GPS unit | ||
+ | * cable to transfer GPS data to and from PC (serial/ | ||
+ | |||
+ | |||
+ | |||
+ | ==== Mac ==== | ||
+ | * LoadMyTracks | ||
+ | * http:// | ||
+ | * gpx2shp | ||
+ | * http:// | ||
+ | * w/ proj4, expat, gpsbabel, libusb, and possibly more | ||
+ | * gpx2shp must be built from source on the Mac (nothing tricky, just have required libraries installed and use the --prefix=/ | ||
+ | |||
+ | ==== PC ==== | ||
+ | * FIXME | ||
+ | |||
+ | ===== Procedure ===== | ||
+ | - (Field) use GPS unit to create waypoints, tracks, or routes in the field | ||
+ | - connect the GPS unit to a computer, and download the waypoints, tracks, or routes | ||
+ | - (Mac) LoadMyTracks was used | ||
+ | - (Mac) MacGPSPro should work, as well as any other that will create .gpx files | ||
+ | - (PC) FIXME ? | ||
+ | - once .gpx files are created, use the gpx2shp command line utility to create the .shp files: | ||
+ | * **we use the --stats flag to show statistics, and the --fast flag because our .gpx output did not include times so speed cannot be calculated**< | ||
+ | $ gpx2shp --stats --fast Track-2007-04-22\ 23\ 35\ 18.gpx | ||
+ | |||
+ | Track Points: | ||
+ | track count: | ||
+ | point count: | ||
+ | Routes: | ||
+ | route count: | ||
+ | point count: | ||
+ | Waypoints: | ||
+ | point count: | ||
+ | |||
+ | $ ls | ||
+ | |||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | </ | ||
+ | - the .shp files may now be used in any GIS program, such as QGIS, AutoCad Map, MapServer, etc... |