| | 448 | /* 1-member-relation -- OSMOSE Item 1200 */ |
| | 449 | |
| | 450 | relation[type] >[index=-1] way { |
| | 451 | set member; |
| | 452 | } |
| | 453 | |
| | 454 | relation[type] >[index=1].member way { |
| | 455 | throwWarning: "One Member Relation: Check for other members"; |
| | 456 | group: "Osmose Item 1200"; |
| | 457 | } |
| | 458 | |
| | 459 | /* Bad link highway -- OSMOSE Item 1110 */ |
| | 460 | |
| | 461 | /*class 2*/ |
| | 462 | way[highway*="_link"][eval(waylength()) > 1000] { |
| | 463 | throwWarning: "bad highway link"; |
| | 464 | group: tr("highway too long for *_link -- OSMOSE item 1110/2"); |
| | 465 | } |
| | 466 | |
| | 467 | |
| | 468 | /* Bridge to tag -- OSMOSE Item 7012 */ |
| | 469 | way[bridge=yes][!/^bridge:/][eval(waylength()) > 500] { |
| | 470 | throwWarning: "bridge deserving of more detail use bridge:structure= or bridge:support=; "; |
| | 471 | group: tr("bridge to tag -- OSMOSE Item 7012"); |
| | 472 | } |
| | 473 | |
| | 474 | |
| | 475 | /* on junction = roundabout -- OSMOSE Item 4020 */ |
| | 476 | |
| | 477 | *[junction=roundabout][oneway] { |
| | 478 | throwWarning: "Unnecessary oneway tag"; |
| | 479 | group: tr("on junction=roundabout -- OSMOSE Item 4020"); |
| | 480 | fixRemove: "oneway"; |
| | 481 | } |
| | 482 | |
| | 483 | *[junction=roundabout][ref] { |
| | 484 | throwWarning: "Unnecessary ref tag"; |
| | 485 | group: tr("on junction=roundabout -- OSMOSE Item 4020"); |
| | 486 | fixRemove: "ref"; |
| | 487 | } |
| | 488 | |
| | 489 | *[junction=roundabout][area] { |
| | 490 | throwWarning: "Unnecessary area tag"; |
| | 491 | group: tr("on junction=roundabout -- OSMOSE Item 4020"); |
| | 492 | fixRemove: "area"; |
| | 493 | } |
| | 494 | |
| | 495 | /* Oneway -- OSMOSE Item 2030 */ |
| | 496 | |
| | 497 | |
| | 498 | /*-------Class 2-------*/ |
| | 499 | |
| | 500 | way[highway] node:connection { |
| | 501 | set highway_node; |
| | 502 | } |
| | 503 | |
| | 504 | way[junction=roundabout] node.highway_node { |
| | 505 | set junc_node |
| | 506 | } |
| | 507 | |
| | 508 | |
| | 509 | /* |
| | 510 | Typically does not apply |
| | 511 | node[junction=roundabout] < way[highway][!oneway][eval(waylength()) < 100] { |
| | 512 | throwError: "Missing Oneway - Check highway entering/exiting roundabout"; |
| | 513 | group: tr("oneway -- OSMOSE Item 2030/2") |
| | 514 | } |
| | 515 | */ |
| | 516 | |
| | 517 | |
| | 518 | way[highway][!junction][!oneway][eval(waylength()) < 100] node.junc_node { |
| | 519 | throwWarning: "Missing Oneway - Check highway entering/exiting roundabout"; |
| | 520 | group: tr("oneway -- OSMOSE Item 2030/2") |
| | 521 | } |
| | 522 | |
| | 523 | |
| | 524 | |
| | 525 | /* ----- Class 20301 ------ */ |
| | 526 | way[cycleway=opposite][!oneway], |
| | 527 | way[cycleway=opposite_lane][!oneway] { |
| | 528 | throwWarning: "Opposite cycleway without oneway"; |
| | 529 | group: tr("oneway -- OSMOSE Item 2030/20301"); |
| | 530 | } |
| | 531 | |
| | 532 | /* source -- OSMOSE Item 2040 -- administrative boundary does not contain tag source=* */ |
| | 533 | way[boundary=administrative][!source]{ |
| | 534 | throwError: "administrative boundary does not have source tag"; |
| | 535 | group: "source -- OSMOSE Item 2040"; |
| | 536 | } |
| | 537 | |