Importing or loading GSAK databases? #265
|
Will we be able to “import” or otherwise use existing personal GSAK databases? Most of my GSAK databases are not an issue to recreate. But a few, especially my “local” (within 150 miles of home), data base would be impossible to recreate with all its existing data. It has 15,000+ geocaches many of which have been updating logs, etc. for 10 or 20 years and some caches have hundreds of logs. That database regularly loads about 20 pocket queries, using the “download pocket queries” tool in geocaching.com access in GSAK. Then I filter for what I want and export those to my GPSMap 66sr using the garminexport.gsk macro. When I do begin using OpenSAK, it would be great to be able to use this existing home area database. EDIT: I am exporting my largest database as a gpx file, then will import it into OpenSAK and see if that gets me all my information from my GSAK database. It is taking a long time as the db is so big, but I will report the results here when it completes. |
Replies: 3 comments 7 replies
|
That pretty much worked. There are a few quirks I will try to figure out on my own first to see what might be going on. For one example even though a cache might correctly show in OpenSAK count of logs, only 20 of those are able to be viewed. Even if the OpenSAK database says there are 48 logs, only 20 show. All 48 are shown in GSAK. I can't find a setting to change that. |
|
OK. Yes eventually it should be able to import all the logs as having them
all is one of the reasons GSAK users keep their databases updated for so
many years. Strange that OpenGSK shows the correct number of logs in the
count even though only the first 20 are there. The program seems to pick
up on how many there are to import, puts that number into the program, but
then only imports the first 20. I scrolled through several with high log
counts, some in the hundreds. All stated that there were the correct
number of logs, but when you look at the scrollable list of logs, there are
always only 20. Thanks for creating a ticket/issue for future resolution.
Edit: I checked my GSAK export settings to make sure I did not have it set incorrectly there. It is set as it should be with "no limit" to the number of logs to include. Then just be sure the issue was not with the exported gpx file, I imported it back into a test database in GSAK and all the logs show in the list as they should. So indeed the bug must be in the OpenGSK import process I guess. Thanks!
|
|
Import side of this is now implemented and tested. |


Import side of this is now implemented and tested.
_parse_wpt() reads gsak:UserFlag, gsak:IsPremium, gsak:UserSort, gsak:UserData/User2/User3/User4, and gsak:FavPoints from GSAK's block, and _upsert_cache() writes them onto the existing Cache columns (added back in #33). Values are only overwritten when GSAK actually supplies them, so a plain Geocaching.com PQ re-import won't wipe data that came from a previous GSAK-sourced import.
gsak:County wasn't added separately — county is already populated from the standard Groundspeak gs:county field, so that one's covered.
Tested against a real GSAK export (Windows, GSAK test DB with UserFlag/Premium/Sort/UserData1-4/FavPoints filled in) — all fi…