Ignore:
Timestamp:
2009-05-05T16:44:44+02:00 (10 years ago)
Author:
stoecker
Message:

close #2214 - patch by Henrik Niehaus - GPX export metadata handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r1169 r1574  
    1919 */
    2020public class GpxData extends WithAttributes {
     21   
     22    public static final String META_PREFIX = "meta.";
     23    public static final String META_AUTHOR_NAME = META_PREFIX + "author.name";
     24    public static final String META_AUTHOR_EMAIL = META_PREFIX + "author.email";
     25    public static final String META_AUTHOR_LINK = META_PREFIX + "author.link";
     26    public static final String META_COPYRIGHT_AUTHOR = META_PREFIX + "copyright.author";
     27    public static final String META_COPYRIGHT_LICENSE = META_PREFIX + "copyright.license";
     28    public static final String META_COPYRIGHT_YEAR = META_PREFIX + "copyright.year";
     29    public static final String META_DESC = META_PREFIX + "desc";
     30    public static final String META_KEYWORDS = META_PREFIX + "keywords";
     31    public static final String META_LINKS = META_PREFIX + "links";
     32    public static final String META_NAME = META_PREFIX + "name";
     33    public static final String META_TIME = META_PREFIX + "time";
     34   
    2135    public File storageFile;
    2236    public boolean fromServer;
     
    3751            // TODO: Detect conflicts.
    3852            String k = ent.getKey();
    39             if (k.equals("link") && attr.containsKey("link")) {
    40                 ((Collection<GpxLink>) attr.get("link")).addAll(
     53            if (k.equals(META_LINKS) && attr.containsKey(META_LINKS)) {
     54                ((Collection<GpxLink>) attr.get(META_LINKS)).addAll(
    4155                    (Collection<GpxLink>) ent.getValue());
    4256            } else {
Note: See TracChangeset for help on using the changeset viewer.