Changeset 19025 in josm
- Timestamp:
- 2024-04-02T20:50:57+02:00 (7 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/defaultpresets.xml
r19015 r19025 9980 9980 <text key="ref:fgkz" text="Reference FGKZ (DE)" regions="DE" /> 9981 9981 <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" /> 9983 9983 <text key="ref:gnbc" text="Reference GNBC (CA)" regions="CA" /> 9984 9984 <reference ref="wikipedia_wikidata" /> -
trunk/resources/data/validator/deprecated.mapcss
r18971 r19025 2510 2510 } 2511 2511 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 2512 2533 /* When tags are deprecated they should be added to ignoretags.cfg too. */ -
trunk/resources/data/validator/ignoretags.cfg
r18897 r19025 747 747 E:site_type 748 748 E:parking:orientation 749 K:NHD:GNIS_ID 750 K:gnis:id 751 K:nhd:gnis_id 752 K:ref:gnis 753 K:tiger:PLACENS 749 754 ; 750 755 ; 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 244 244 @Test 245 245 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")); 247 247 assertEquals(1, errors.size()); 248 248 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()); 250 250 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 251 251 assertFalse(errors.get(0).isFixable());
Note:
See TracChangeset
for help on using the changeset viewer.