Is "category" a field in favourites.gpx file?

295 views
Skip to first unread message

David Levy

unread,
May 27, 2014, 8:54:27 AM5/27/14
to osm...@googlegroups.com
I wanted to edit the favourites.gpx folder to add waypoints (or favourites, as OSMAND calls them) and transfer files around my various devices. Using Easy GPS and GPX Editor, I can open, view, and edit favourites file, but don't see category as a field (I use it for country or city, to group waypoints together). Is this a hidden field somehow, or is the information indexed in another file? It makes it harder to sort and extract groups of waypoints for particular countries.
I've seen a couple of other posts allude to "category" causing errors, but not sure if this is related
thanks for excellent software!

Harry van der Wolf

unread,
May 27, 2014, 9:09:26 AM5/27/14
to osmand
Hi,

The favourites.gpx is not a valid gpx file and "category" is not a valid field in the gpx schema (http://www.topografix.com/GPX/1/1/).
I simply assume your gpx editor skips  "unknown" fields treating them like  "auto remove errors" (does your gpx editor have a setting for this: auto remove non-standard fields or so?).
If you open your favourites.gpx in a standard text editor you will find the category filed

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<gpx version="1.1" creator="OsmAnd~" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  <wpt lat="1.00000" lon="1.00000">
    <name>Fav 1</name>
    <category>England</category>
  </wpt>
  <wpt lat="2.00000" lon="2.00000">
    <name>Fav 2</name>
    <category>Germany</category>
  </wpt>
  <wpt lat="3.00000" lon="3.00000">
    <name>Fav 3</name>
    <category>Scotland</category>
  </wpt>

Harry


--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Levy

unread,
May 27, 2014, 9:38:29 AM5/27/14
to osm...@googlegroups.com
Thanks for quick response, Harry! (and PS I paid for the + version a while back).
I don't really follow the technical details, but get the gist of this - It's not a standard GPX file.

A related question: on the "Favorites" screen, I can see what the save (disk) icon does, it exports a favourites.gpx file.
The sync button? - it seems to take all the waypoints from each category and create a copy in the top folder i.e. with no category. And those already in there are doubled up - so after playing around, I now have some with 4 and 8 duplicate entries! And I don't want to hit delete in case it does anything unexpected!

I also don't get the different function of favourites.gpx and favourites_bak.gpx

If I put a gpx file in the tracks folder, will these show up and get incorporated into the master waypoint list?
I've searched forum and cannot find documentation on these topics.
thanks again

Harry van der Wolf

unread,
May 27, 2014, 9:57:56 AM5/27/14
to osmand
2014-05-27 15:38 GMT+02:00 David Levy <davidt...@gmail.com>:
Thanks for quick response, Harry! (and PS I paid for the + version a while back).
I don't really follow the technical details, but get the gist of this - It's not a standard GPX file.

hurray!
 

A related question: on the "Favorites" screen, I can see what the save (disk) icon does, it exports a favourites.gpx file.
The sync button? - it seems to take all the waypoints from each category and create a copy in the top folder i.e. with no category. And those already in there are doubled up - so after playing around, I now have some with 4 and 8 duplicate entries! And I don't want to hit delete in case it does anything unexpected!

The sync is not really sync, but "read from disk and import".
The favourites are actually in an sqlite database in the app settings part on your phone. you can add (or initially populate) these by importing a GPX file. If you import the same file twice, you do indeed get doubles.
If you have a list of favourites on your phone and you get a favourites file from an OsmAnd friend or so, you can import these next to the already imported favourites.
If you then save this favourites file to disk you have a new backup containing your original favourites and the new ones, both taken (now) from the app data file section.

 

I also don't get the different function of favourites.gpx and favourites_bak.gpx

If I put a gpx file in the tracks folder, will these show up and get incorporated into the master waypoint list?
I've searched forum and cannot find documentation on these topics.
thanks again

The tracks folder is for real gpx files. You can use any valid gpx file containing waypoints, trackpoints or routepoints.
I don't know whether it works for your favourites file. And if this is about POIs, you better create a POI file.

Harry
Reply all
Reply to author
Forward
0 new messages