Changeset 16346 in osm for applications/editors
- Timestamp:
- 2009-07-05T19:50:37+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/ignoretags.cfg
r16319 r16346 12 12 S:au.gov.abs: 13 13 S:qroti: 14 S:is_in :14 S:is_in 15 15 S:wikipedia 16 S:source_ref: 16 17 ; 17 18 ; Ignore valid and semi-valid keys that equal... … … 26 27 E:addr:state 27 28 E:import_uuid 29 E:image 28 30 E:url 31 E:website 29 32 E:postal_code 33 E:source:boundary 34 E:hour_on 35 E:hour_off 36 E:tower:type 37 E:rcn_ref 38 E:place_name 30 39 ; 31 40 ; Ignore valid and semi-valid keys that end with... … … 40 49 ; 41 50 K:highway=secondary_link 51 K:oneway=-1 52 ; 53 ; traffic_calming Tags 54 ; 55 K:traffic_calming=yes 56 K:traffic_calming=bump 57 K:traffic_calming=chicane 58 K:traffic_calming=cushion 59 K:traffic_calming=hump 60 K:traffic_calming=rumble_strip 61 K:traffic_calming=table 62 K:traffic_calming=choker 42 63 ; 43 64 ; Aeroway Key/Value Pairs 44 65 ; 66 K:aeroway=apron 67 K:aeroway=hanger 68 K:aeroway=runway 45 69 K:aeroway=taxiway 46 K:aeroway=runway47 70 K:aeroway=terminal 48 K:aeroway=hanger49 71 ; 50 72 ; Amenity Key/Value Pairs 51 73 ; 52 74 K:amenity=bbq 75 ; 76 ; Cycleway Tags 77 ; 78 K:cycleway=track 79 ; 80 ; Man_made Tags 81 ; 82 T:man_made=pipeline|type=water 83 T:man_made=pipeline|type=oil 84 T:man_made=pipeline|type=gas 85 T:man_made=pipeline|type=sewage 86 T:man_made=pipeline|location=underground 87 T:man_made=pipeline|location=underwater 88 T:man_made=pipeline|location=overground 89 ; 90 ; Military Tags 91 ; 92 K:military=airfield 93 K:military=bunker 94 K:military=barracks 95 K:military=danger_area 96 K:military=range 97 K:military=naval_base 53 98 ; 54 99 ; Surface Key/Value Pairs … … 59 104 ; Religious Key/Value Pairs 60 105 ; 106 T:religion=christian|denomination=anglican 61 107 T:religion=muslim|denomination=alaouite 62 108 T:religion=jewish|denomination=alternative 109 T:religion=christian|denomination=apostolic 63 110 T:religion=jewish|denomination=ashkenazi 111 T:religion=christian|denomination=baptist 64 112 T:religion=christian|denomination=catholic 65 113 T:religion=christian|denomination=christian_community … … 121 169 K:shop=mall 122 170 ; 171 ; Sports Tags 172 ; 173 K:sport=boxing 174 K:sport=netball 175 ; 123 176 ; Type Key/Value Pairs 124 177 ; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
r14121 r16346 71 71 if( !tags.containsKey("name") && !tags.containsKey("ref") ) 72 72 { 73 boolean isRoundabout = false; 73 74 boolean hasName = false; 74 75 for( String key : w.keySet()) … … 77 78 if( hasName ) 78 79 break; 80 if(key.equals("junction")) 81 { 82 isRoundabout = w.get("junction").equals("roundabout"); 83 break; 84 } 79 85 } 80 86 81 if( !hasName )87 if( !hasName && !isRoundabout) 82 88 errors.add( new TestError(this, Severity.WARNING, tr("Unnamed ways"), UNNAMED_WAY, w) ); 89 else if(isRoundabout) 90 errors.add( new TestError(this, Severity.WARNING, tr("Unnamed Junction"), UNNAMED_WAY, w) ); 83 91 } 84 92 }
Note:
See TracChangeset
for help on using the changeset viewer.