source: josm/trunk/src/org/openstreetmap/josm/data/gpx/GpxConstants.java@ 5909

Last change on this file since 5909 was 5684, checked in by bastiK, 11 years ago

add session support for marker layers (see #4029)

The data is exported to a separate GPX file that contains one waypoint for each marker.
This is not very elegant, because most of the time, all the info is already contained in the original GPX File.
However, when dealing with audio markers, they can be synchronized, or additional markers are added
at certain playback positions. This info must be retained.
Another complication is, that two or more MarkerLayers can be merged to one.

All these problems are avoided by explicitly exporting the markers to a separate file (as done in this commit).

File size: 1.5 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.gpx;
3
4import java.util.Arrays;
5import java.util.List;
6
7/**
8 * Constants for GPX handling.
9 */
10public interface GpxConstants {
11
12 public static final String META_PREFIX = "meta.";
13 public static final String META_AUTHOR_NAME = META_PREFIX + "author.name";
14 public static final String META_AUTHOR_EMAIL = META_PREFIX + "author.email";
15 public static final String META_AUTHOR_LINK = META_PREFIX + "author.link";
16 public static final String META_COPYRIGHT_AUTHOR = META_PREFIX + "copyright.author";
17 public static final String META_COPYRIGHT_LICENSE = META_PREFIX + "copyright.license";
18 public static final String META_COPYRIGHT_YEAR = META_PREFIX + "copyright.year";
19 public static final String META_DESC = META_PREFIX + "desc";
20 public static final String META_KEYWORDS = META_PREFIX + "keywords";
21 public static final String META_LINKS = META_PREFIX + "links";
22 public static final String META_NAME = META_PREFIX + "name";
23 public static final String META_TIME = META_PREFIX + "time";
24 public static final String META_EXTENSIONS = META_PREFIX + "extensions";
25
26 public static final String JOSM_EXTENSIONS_NAMESPACE_URI = "http://josm.openstreetmap.de/gpx-extensions";
27
28 public static List<String> WPT_KEYS = Arrays.asList("ele", "time", "magvar", "geoidheight",
29 "name", "cmt", "desc", "src", META_LINKS, "sym", "number", "type",
30 "fix", "sat", "hdop", "vdop", "pdop", "ageofdgpsdata", "dgpsid", META_EXTENSIONS);
31
32}
Note: See TracBrowser for help on using the repository browser.