Changeset 10981 in josm
- Timestamp:
- 2016-09-09T02:13:30+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r10643 r10981 17 17 import org.openstreetmap.josm.command.DeleteCommand; 18 18 import org.openstreetmap.josm.data.osm.OsmPrimitive; 19 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 19 20 import org.openstreetmap.josm.data.osm.Relation; 20 21 import org.openstreetmap.josm.data.osm.RelationMember; … … 200 201 */ 201 202 private boolean checkMemberExpressionAndType(RolePreset rolePreset, RelationMember member, Relation n) { 202 TestError possibleMatchError = null;203 203 if (rolePreset == null || rolePreset.roles == null) { 204 204 // no restrictions on role types 205 205 return true; 206 206 } 207 TestError possibleMatchError = null; 207 208 // iterate through all of the role definition within preset 208 209 // and look for any matching definition … … 233 234 tr(s, r.memberExpression, rolePreset.name), s, WRONG_TYPE, 234 235 member.getMember().isUsable() ? member.getMember() : n); 235 236 236 } 237 237 } 238 238 } 239 } else if (OsmPrimitiveType.RELATION.equals(member.getType()) && !member.getMember().isUsable() 240 && r.types.contains(TaggingPresetType.MULTIPOLYGON)) { 241 // if relation is incomplete we cannot verify if it's a multipolygon - so we just skip it 242 return true; 239 243 } 240 244 }
Note:
See TracChangeset
for help on using the changeset viewer.