Jump to content
Sign in to follow this  
Followers 3
qbee37

PQs not including Favorite points in generated gpx

Recommended Posts

I ran an old PQ, and when I got the page that says You can preview your search here, the Favorite points show. 
 
?ui=2&ik=b63fd72d12&view=fimg&th=163b6d7f746a9560&attid=0.2&disp=emb&realattid=ii_jhup2sv60_163b6cad5bdba10b&attbid=ANGjdJ9DbsChhQsd71E4Z8CGpM0rvBSr8yBLWvRQKf7HK_Ao3cHoIDI0uAl6lTpz053paQX6nuITd3ibv2MnWGJ--guUuSScOJRge6cpIaZxBLFT07fbmR2BRbzuGc4&sz=w1122-h132&ats=1527781400213&rm=163b6d7f746a9560&zw&atsh=1
?ui=2&ik=b63fd72d12&view=fimg&th=163b6d7f746a9560&attid=0.1&disp=emb&realattid=ii_jhup44xg1_163b6cbc7da1f499&attbid=ANGjdJ_Uqzl6OPtUjMCuJ3ti_pR1-mNHwjo0Sb7rt_IBiYFIkNLI-L4dzpclTZsTC_o8YUGuL0QBi9lkRwi9t5ZlnXXWS8Ed9BBj1Ov4bhRJv2lKDTcbtH1H3pGErFE&sz=w1122-h554&ats=1527781400213&rm=163b6d7f746a9560&zw&atsh=1
 
But if I use Notepad to examine the generated gpx file, I can't find any XML tags for Favorites; there are no Favorites listed.  Same issue with a gpx generated from a single cache listing that has Favorites.  The only place Faves show up in the generated gpx file is in the text of an individual log.
 
And, as would be expected, if I load the generated gpx into GSAK or c:geo, there are no favorites.
 
If I do a Refresh once the PQ is in GSAK, the Favorites get pulled in.  If I then use GSAK to create a GPX, I can read it into a new GSAK database and the Favorites are there. 
 
I can also bring this new file into c:geo from Dropbox and the Favorites are there.
 
There would appear to be an error of some sort in the Groundspeak gpx generation process.  Other cachers I know are experiencing the same problem

Share this post


Link to post
12 minutes ago, qbee37 said:

[...]

There would appear to be an error of some sort in the Groundspeak gpx generation process.  Other cachers I know are experiencing the same problem

No, that's by design. ;-) The FavPoints are just not part of Groundspeak's GPX and PQ files.

Share this post


Link to post

Gee, imagine my surprise :mad:

 

Useful functionality - NO

More meaningless souvenirs - Of Course!

Share this post


Link to post

To expand a bit - when you refresh in GSAK, it uses the API to get data (depending on your options) so gets the favpoints. When you export with gsak, it includes the data as an additional field which gsak then recognizes when importing again.  The API manages all the new data; the GPX and PQs are "old" in that they're still missing newer data points. That hasn't changed for some time. If you want every bit of information you can get, and still want to use PQs, get used to importing the PQ  then refreshing with the API. (technically these two steps can be combined as one)

 

Some tools just use the PQ results and then request the data via API, rather than importing the PQ then re-refreshing the data via API. Anyway, those are backend optimization things.

 

It's frustrating to have features like GPX and PQs not kept up to date, but they are old, and the API is what HQ is focusing on now.

Share this post


Link to post

A replacement for the PQ system - which would presumably include FPs - was promised several years ago, but we have yet to see any movement on this.

Share this post


Link to post

It's plain-text from database into xml. How difficult can it be?!

Share this post


Link to post

No it isn't - retired missile defense integration and test engineer :P

Share this post


Link to post

I was 100% serious with my previous post. That's why there was a tonguey :P.

  • Upvote 1

Share this post


Link to post
On 6/1/2018 at 6:29 PM, qbee37 said:

It's plain-text from database into xml. How difficult can it be?!

 

The contents of an XML file is defined by one or more xml schema files.  Note the second line in the file (wrapped for readability:

<gpx xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     version="1.0" creator="Groundspeak, Inc. All Rights Reserved. http://www.Groundspeak.com"
     xsi:schemaLocation="http://www.topografix.com/GPX/1/0 
        http://www.topografix.com/GPX/1/0/gpx.xsd 
        http://www.Groundspeak.com/cache/1/0/1 
        http://www.Groundspeak.com/cache/1/0/1/cache.xsd" 
     xmlns="http://www.topografix.com/GPX/1/0">

In this case, several schema files (those ending with xsd) are define.  There is a specification for the basic GPX as well as Groundspeak extensions.  Schema files define what elements may appear in the XML file, the order of elements,  types of data for each element (e.g. lat and long attributes are defined as decimal values), whether some elements are required of optional, etc.  The Groundspeak extensions (defined in http://www.Groundspeak.com/cache/1/0/1/cache.xsd)  does not include a definition for a favorites element or attribute).  Simply adding a number favorites points element (or attribute) without changing the schema file would make the GPX file invalid.  Software application developers which read XML files *should* validate the XML before trying to parse it and if it contains an element or attribute that is not defined in the schema it should be ignored.

Share this post


Link to post
On 6/1/2018 at 3:35 PM, The A-Team said:

A replacement for the PQ system - which would presumably include FPs - was promised several years ago, but we have yet to see any movement on this.

 

Although there has been talk about replacing the PQ system (I can suggest a design for that) there still needs to be a way to encapsulate geocache data so that it can be transferred from the site, other applications such as waypoint managers (GSAK, EasyGPS, Basecamp), and the devices we use for finding and hiding caches (smartphones or handheld GPS devices) and for the most part, that's a GPX file.  

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 3

×