|
GSAK (Geocaching Swiss Army Knife)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
All Database variables begin with $d_ and each variable has a given type. Caches database variables are displayed as columns and more information can be found here. ("string" database variables have a physical limit of 2gb) Most database variables can be updated simply by using the statement $d_SomeVariable = $SomeValue, where $d_SomeVariable is a valid database variable and $SomeValue is any valid variable or literal (but it must match the data type of the database variable). This actually updates your database, but as some variables are calculated from other items in the database there are exceptions. These are: $d_Bearing, $d_Changed, $d_Degrees, $d_Distance, $d_FoundCount, $d_HasCorrected, $d_HasUserNote, $d_HastravelBug, $d_LastFoundDate, $d_LastGPXDate, $d_LastLog, $d_LastUserDate, $d_LatOriginal, $d_LonOriginal, $d_NumberOfLogs, $d_UserNoteDate, $d_cByUser, $d_cParent, $d_cPrefix, $d_kBeforeCounty, $d_kBeforeState, $d_kCode, $d_kBeforeLat, $d_kBeforeLon, $d_lIsowner, $d_lParent, $d_aName $d_ Database variables are separated into 5 GSAK tables - caches, corrected, logs, waypoints, and attributes You can navigate through each of these tables using the Table and Goto commands. Note: The tables CacheImages, LogImages and Custom are not supported in this manner - use Sqlite to read these tables. Caches
For a more complete explanation of some of these fields please this topic $d_Status (Cache Status): A = Available T = Temporary disabled X = Archived $d_CacheType (Cache Types): A = Project Ape B = Letterbox C = Cache In Trash Out E = Event G = BenchMark I = Wherigo L = Locationless M = Multi O = Other R = Earth T = Traditional U = Unknown/Mystery V = Virtual W = Webcam X = Maze Exhibit Y = Waymark Z = Mega event Also see the CacheType() function Corrected
Note: GSAK automatically keeps the fields $d_kBeforeLat and $d_kBeforeLon in sync with the caches table $d_LatOriginal and $d_LonOriginal. Consider these corresponding fields ans "synonymous" if you will. Logs
Currently known values for $d_lType from Geocaching.com include: Announcement Archive Attended Didn't find it Enable Listing Found it Needs Archived Needs Maintenance Owner Maintenance Post Reviewer Note Publish Listing Retract Listing Temporarily Disable Listing Unarchive Update Coordinates Webcam Photo Taken Will Attend Write note Waypoints
Notes: User created ($d_cByUser = True) child waypoints are effectively locked from updates by Geocaching.com additional waypoints that have the same code $d_cPrefix is provided for version 6 compatibility and is read only because it is set via $d_cCode. That is, $d_cPrefix is always equal to the first 2 characters of $d_cCode The current possible values for $d_cType are set by GroundSpeak and they include: Final Location Parking Area Question to Answer Stages of a Multicache Trailhead Reference Point You can also add your own types (more information) By setting the $d_cFlag in a macro you can control which child waypoints will be selected for export. Most export dialogs have the following option: more information Attributes (use view "attname" to also include $d_aName)
Note: currently the attributes table is read only. It is provided here for consistency with other tables, but it is recommend that you use sqlite() in macros to read and interrogate attribute data. |
|
Copyright 2004-2011 CWE Computer Services Privacy Policy Contact |