Changeset 19025 in josm


Ignore:
Timestamp:
2024-04-02T20:50:57+02:00 (5 weeks ago)
Author:
taylor.smock
Message:

Fix #23177: Change ref:gnis to gnis:feature_id in the waterway tagging options

ref:gnis, gnis:id, tiger:PLACENS, NHS:GNIS_ID, and nhs:gnis_id have
been merged into gnis:feature_id.

The wiki pages have been stable for 6 months, and the changes were discussed on
the OSM forum.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r19015 r19025  
    99809980                <text key="ref:fgkz" text="Reference FGKZ (DE)" regions="DE" />
    99819981                <text key="ref:regine" text="Reference REGINE (NO)" regions="NO" />
    9982                 <text key="ref:gnis" text="Reference GNIS (USA)" regions="US" />
     9982                <text key="gnis:feature_id" text="Reference GNIS (USA)" regions="US" />
    99839983                <text key="ref:gnbc" text="Reference GNBC (CA)" regions="CA" />
    99849984                <reference ref="wikipedia_wikidata" />
  • trunk/resources/data/validator/deprecated.mapcss

    r18971 r19025  
    25102510}
    25112511
     2512/* Tags were consolidated, see #23177 */
     2513*[gnis:id][!gnis:feature_id],
     2514*[tiger:PLACENS][!gnis:feature_id],
     2515*[NHD:GNIS_ID][!gnis:feature_id],
     2516*[nhd:gnis_id][!gnis:feature_id],
     2517*[ref:gnis][!gnis:feature_id] {
     2518  throwWarning: tr("{0} is deprecated", "{0.key}");
     2519  group: tr("deprecated tagging");
     2520  suggestAlternative: "{1.key}={0.value}";
     2521  fixChangeKey: "{0.key} => {1.key}";
     2522}
     2523*[gnis:id][gnis:feature_id],
     2524*[tiger:PLACENS][gnis:feature_id],
     2525*[NHD:GNIS_ID][gnis:feature_id],
     2526*[nhd:gnis_id][gnis:feature_id],
     2527*[ref:gnis][gnis:feature_id] {
     2528  throwWarning: tr("{0} is deprecated", "{0.key}");
     2529  group: tr("deprecated tagging");
     2530  suggestAlternative: "{1.key}";
     2531}
     2532
    25122533/* When tags are deprecated they should be added to ignoretags.cfg too. */
  • trunk/resources/data/validator/ignoretags.cfg

    r18897 r19025  
    747747E:site_type
    748748E:parking:orientation
     749K:NHD:GNIS_ID
     750K:gnis:id
     751K:nhd:gnis_id
     752K:ref:gnis
     753K:tiger:PLACENS
    749754;
    750755; Tags not yet decided (to remove from this section when added or moved up when deprecated)
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java

    r18981 r19025  
    244244    @Test
    245245    void testRegionTag() throws IOException {
    246         final List<TestError> errors = test(OsmUtils.createPrimitive("relation type=waterway ref:gnis=123456"));
     246        final List<TestError> errors = test(OsmUtils.createPrimitive("relation type=waterway gnis:feature_id=123456"));
    247247        assertEquals(1, errors.size());
    248248        assertEquals("Key from a preset is invalid in this region", errors.get(0).getMessage());
    249         assertEquals("Preset Waterway should not have the key ref:gnis", errors.get(0).getDescription());
     249        assertEquals("Preset Waterway should not have the key gnis:feature_id", errors.get(0).getDescription());
    250250        assertEquals(Severity.WARNING, errors.get(0).getSeverity());
    251251        assertFalse(errors.get(0).isFixable());
Note: See TracChangeset for help on using the changeset viewer.