source: subversion/applications/editors/josm/plugins/indoorhelper/data/indoorhelper.validator.mapcss @ 32122

Last change on this file since 32122 was 32122, checked in by erigrus, 3 years ago

initial commit

File size: 807 bytes
Line 
1/* Validator file to check the indoor data for errors */
2
3/* rule which checks if every way and every POI has a level-tag */
4way[!indoor:level], node:unconnected[!indoor:level]{
5        throwWarning: tr("This object has no level tag.");
6        fixAdd: "indoor:level=*";
7        suggestAlternative: "Delete the object or use the plug-in to add a POI tag!";
8}
9
10/* rules for wrong assigned ways or nodes */
11node:unconnected[indoor:area], node:unconnected[indoor:highway]{
12        throwWarning: tr("You assigned properties to a node which should only be assigned to ways!");
13        fixRemove: "indoor:area";
14        fixRemove: "indoor:highway";
15}
16
17way[indoor:door], way[indoor:entrance]{
18        throwWarning: tr("You assigned properties to a way which should only be assigned to nodes!");
19        fixRemove: "indoor:door";
20        fixRemove: "indoor:entrance";
21}
22
23
24
25
26
27
28
29
Note: See TracBrowser for help on using the repository browser.