I am currently importing the post-processed data and notes from my May 17 ride of the Victoria’s Secret loop and thought I would show a bit of the process. As you can see, importing the data is command-line driven. First, I import a GPX file that I have already edited and have cleaned up and cut into various segments. Next, I import another GPX file that covers a short piece of road from the best parking option in the area, this was taken on a separate, later ride. I supply the UUID of the trail I imported in the first step and this new data is then added to that trail instead of creating a new trail. In the third step, I import some MP3 notes that I took for my reference while riding the loop, more on that here in a prior blog entry.
sjg@df(/home/sjg/projects/pahasapatrails.com/admin): ./import_gpx.php USAGE: * ./import_gpx.php * -f filename * -t type (network or trail) * -u uuid (optional) * -e disregard elevation data Please specify GPX file to import with -f sjg@df(/home/sjg/projects/pahasapatrails.com/admin): ./import_gpx.php -t trail -f ~/projects/mapping/data/Victoria Lake/Victorias Secret/Victoria's Secret [DEM].gpx Processing ... File: '/home/sjg/projects/mapping/data/Victoria Lake/Victorias Secret/Victoria's Secret [DEM].gpx', Type: 'trail' Imported: 4e179c21-012f-0000-1223-2264271607d8 sjg@df(/home/sjg/projects/pahasapatrails.com/admin): ./import_gpx.php -t trail -f ~/projects/mapping/data/Victoria Lake/Victorias Secret/Victoria's Secret [DEM] - Approach (road).gpx -u 4e179c21-012f-0000-1223-2264271607d8 Processing ... File: '/home/sjg/projects/mapping/data/Victoria Lake/Victorias Secret/Victoria's Secret [DEM] - Approach (road).gpx', Type: 'trail' Importing into existing trail/network... Imported: 4e179c21-012f-0000-1223-2264271607d8 sjg@df(/home/sjg/projects/pahasapatrails.com/admin): ./import_mp3.php USAGE: * ./import_mp3.php * -g reference GPX data * -d directory (mp3 source) * -t type (network or trail) * -u uuid Please specify GPX file to reference with -g sjg@df(/home/sjg/projects/pahasapatrails.com/admin): ./import_mp3.php -u 4e179c21-012f-0000-1223-2264271607d8 -t trail -g ~/projects/mapping/data/Victoria Lake/Victorias Secret/activity_86 306860.gpx -d ~/projects/mapping/data/Victoria Lake/Victorias Secret/audio Importing ... File: '/home/sjg/projects/mapping/data/Victoria Lake/Victorias Secret/activity_86306860.gpx', Type: 'trail' Source Dir: '/home/sjg/projects/mapping/data/Victoria Lake/Victorias Secret/audio', UUID: '4e179c21-012f-0000-1223-2264271607d8' ............................................................ Imported 60 MP3s