![]() Pack first for better removal of duplicates. set filterSetting to " -x track,pack -x position,distance=1m" - GIVES A GPSBABEL ERROR-AWAITING FIXES. set filterSetting to " -x position,distance=1m -x track,pack" - this probably doesn't work well with saved tracks as they are combined set filterSetting to " -x position,distance=1m -x track,pack,title="ACTIVE LOG" " - don't know how to pass the double quotes set filterSetting to " -x position,distance=1m " - 1 meter and leave one set filterSetting to " -x position,distance=1f " - 1 foot and leave one set filterSetting to " -x position " - Default, distance=0 You can leave in uncommented and any below will override it. Set filterSetting to "" - use this one if you don't want any Position filtering. Garmin: remove extraneous points recorded when out of range that have same lat and long as last good point (altitude is ignored in this filter) When the Garmin loses sight of the sattiletes, when it reconects, it puts in poitns with a lat-long equal to the last good point, but current time and elevation (mine has a barameter). Using the Position filter to correct a Garmin error. Set outputPATHArchive to fileCheckName(outputFolderalias, outputFileName) Set outputFileName to downloadDate & ".All.z." & outputTYPE - DDDD Developer default set outputFileName to downloadDate & ".GPSBabel." & outputTYPE - UUUU User default set outputFileName to "Garmin." & downloadDate & ".z." & outputTYPE file name archive (everything downloaded with no processing) Set outputFolderalias to choose folder with prompt "Select a folder for downloaded GPS data:" assumes same folder for all files created Set downloadDate to theYear & "-" & theMonth & "-" & theDay Set theDay to my getPaddedString(day of theDate) Set theMonth to my getPaddedString(my getMonthNumber(theDate)) Set theYear to ((year of theDate) as string) Set inputPATH to " /dev/cu.USA19H531P1.1 " - Recent Keyspan. Set outputTYPE to "gpx" -set the output file type to whatever you want Set inputTYPE to " -t -w -i garmin" - for downloading from Garmin set gpsBabelLocation to "/Applications/MacGPSBabel/MacGPSBabel/Contents/MacOS/MacGPSBabel" - Normal MacGPSBabel location Set gpsBabelLocation to "/opt/local/var/db/dports/software/gpsbabel/1.2.7_0/opt/local/bin/" - DarwinPorts Default for Tiger, Feb. This script is not being actively supported, but you may get some help from the gpsbabel discussion group: This is set up for gpsbabel installed using DarwinPorts. Also a line for using the MacGPSBabel version-but you'd probably be using MacGPSBabel for this unless you need some special filter that isn't implemented Options can be used by uncommenting the needed options or changing as needed. This script downloads from your Garmin using the DarwinPorts installed version of gpsbabel. It would need to be modified to use with a modern USB native GPS. The first script is for downloading from your Garmin GPS hooked up via a serial cable. Rather than implement options in the script for this assumed to be rare situation, you either need to select another folder for the file or rename the file with the same name. ![]() Two options are offered: 1) OK (go ahead and overwrite), and 2) Cancel. Since the two scripts that create files have automatic file naming, they check for the existence of a file with that name. Earlier versions of Mac OS X used a different procedure for activating the Script Menu I don't know when this utility was first included. If you don’t have the Script Menu activated launch Applications > AppleScript > AppleScript Utility and click on "Show Script Menu in menu bar" which will put a script symbol in the Menu Bar allowing quick access to the scripts. Save each script to a convenient location such as ~/Library/Scripts/. ![]() Open Script Editor and put the lines between "-begin script" and "-end script" for each script in a new script file. The Script Editor application is in your Applications folder in the AppleScript folder or some similar location depending on your OS X version. The scripts are shown below or the three scripts can be downloaded here. But they can be modified for other file formats with study of the scripts and GPSBabel documentation, For help try AppleScript forums or GPSBabel discussion groups. These three scripts are written for uploading and downloading GPX formatted files, and for converting (the downloaded) GPX files to KML for use with GoogleEarth. They can be used with the gpsbabel file that’s part of the MacGPSBabel installation with minor changes. ![]() The following three AppleScripts will get you started with your DarwinPorts installation of GPSBabel. AppleScripts for use with DarwinPorts Installation ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |