Ignore:
Timestamp:
2012-09-03T18:56:02+02:00 (12 years ago)
Author:
bastiK
Message:

applied #7915 - Automatically discard some TIGER tags on upload (based on patch by ToeBee)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r5442 r5497  
    609609     *----------------------------------*/
    610610
    611 
    612611    private static volatile Collection<String> uninteresting = null;
     612    private static volatile Collection<String> discardable = null;
     613   
    613614    /**
    614615     * Contains a list of "uninteresting" keys that do not make an object
     
    620621        if (uninteresting == null) {
    621622            uninteresting = Main.pref.getCollection("tags.uninteresting",
    622                     Arrays.asList(new String[]{"source", "source_ref", "source:", "note", "comment",
     623                    Arrays.asList("source", "source_ref", "source:", "note", "comment",
    623624                            "converted_by", "created_by", "watch", "watch:", "fixme", "FIXME",
    624                             "description", "attribution"}));
     625                            "description", "attribution"));
    625626        }
    626627        return uninteresting;
     628    }
     629
     630    /**
     631     * Returns a list of keys which have been deemed uninteresting to the point
     632     * that they can be silently removed from data which is being edited.
     633     */
     634    public static Collection<String> getDiscardableKeys() {
     635        if(discardable == null) {
     636            discardable = Main.pref.getCollection("tags.discardable",
     637                    Arrays.asList("created_by",
     638                            "tiger:upload_uuid", "tiger:tlid", "tiger:source", "tiger:separated",
     639                            "geobase:datasetName", "geobase:uuid", "sub_sea:type",
     640                            "odbl", "odbl:note"));
     641        }
     642        return discardable;
    627643    }
    628644
Note: See TracChangeset for help on using the changeset viewer.