| 1 | == BAR damage assessment methodology style == |
| 2 | |
| 3 | This preset supplies colored and shaped icons and classes, for tagging visible structural strength and damage scale of buildings, according to [http://hhi.harvard.edu/publications/satellite-imagery-interpretation-guide-assessing-wind-disaster-damage-structures HHI BAR damage assessment methodology], adapted for OSM. |
| 4 | |
| 5 | {{{ |
| 6 | #!style type="mapcss" |
| 7 | meta |
| 8 | { |
| 9 | title: "BAR damage assessment methodology style"; |
| 10 | description: "Displays colored and shaped icons, to show tagging of visible structural strength and damage scale of buildings, according to HHI BAR damage assessment methodology, adapted for OSM"; |
| 11 | icon: "matrix-icons-64.png"; |
| 12 | version: "0.[[revision]]_[[date]]"; |
| 13 | author: "jgc <jgc at arkemie dot org>"; |
| 14 | link: "http://josm.openstreetmap.de/wiki/Styles/BAR-damage-assessment"; |
| 15 | } |
| 16 | /* |
| 17 | Based on: http://hhi.harvard.edu/publications/satellite-imagery-interpretation-guide-assessing-wind-disaster-damage-structures , adapted for OSM |
| 18 | |
| 19 | (mapcss style adapted from http://josm.openstreetmap.de/wiki/Styles/JP-Tsunami) |
| 20 | */ |
| 21 | node[damage=none][damage:structure=light] {icon-image: "light-none-16.png"} |
| 22 | node[damage=minimal][damage:structure=light] {icon-image: "light-minimal-16.png"} |
| 23 | node[damage=significant][damage:structure=light] {icon-image: "light-significant-16.png"} |
| 24 | node[damage=complete][damage:structure=light] {icon-image: "light-complete-16.png"} |
| 25 | node[damage=none][damage:structure=medium] {icon-image: "medium-none-16.png"} |
| 26 | node[damage=minimal][damage:structure=medium] {icon-image: "medium-minimal-16.png"} |
| 27 | node[damage=significant][damage:structure=medium] {icon-image: "medium-significant-16.png"} |
| 28 | node[damage=complete][damage:structure=medium] {icon-image: "medium-complete-16.png"} |
| 29 | node[damage=none][damage:structure=heavy] {icon-image: "heavy-none-16.png"} |
| 30 | node[damage=minimal][damage:structure=heavy] {icon-image: "heavy-minimal-16.png"} |
| 31 | node[damage=significant][damage:structure=heavy] {icon-image: "heavy-significant-16.png"} |
| 32 | node[damage=complete][damage:structure=heavy] {icon-image: "heavy-complete-16.png"} |
| 33 | |
| 34 | area[damage=none][damage:structure=light]:closed {fill-image: "light-none-16.png"} |
| 35 | area[damage=minimal][damage:structure=light]:closed {fill-image: "light-minimal-16.png"} |
| 36 | area[damage=significant][damage:structure=light]:closed {fill-image: "light-significant-16.png"} |
| 37 | area[damage=complete][damage:structure=light]:closed {fill-image: "light-complete-16.png"} |
| 38 | area[damage=none][damage:structure=medium]:closed {fill-image: "medium-none-16.png"} |
| 39 | area[damage=minimal][damage:structure=medium]:closed {fill-image: "medium-minimal-16.png"} |
| 40 | area[damage=significant][damage:structure=medium]:closed {fill-image: "medium-significant-16.png"} |
| 41 | area[damage=complete][damage:structure=medium]:closed {fill-image: "medium-complete-16.png"} |
| 42 | area[damage=complete][damage:structure=medium]:closed {fill-image: "medium-complete-16.png"} |
| 43 | area[damage=none][damage:structure=heavy]:closed {fill-image: "heavy-none-16.png"} |
| 44 | area[damage=minimal][damage:structure=heavy]:closed {fill-image: "heavy-minimal-16.png"} |
| 45 | area[damage=significant][damage:structure=heavy]:closed {fill-image: "heavy-significant-16.png"} |
| 46 | area[damage=complete][damage:structure=heavy]:closed {fill-image: "heavy-complete-16.png"} |
| 47 | |
| 48 | |
| 49 | /* Kept from PierZen's JP-Tsunami: */ |
| 50 | /* control node size to help vizualise damaged zones at lower zoom levels */ |
| 51 | node[note] { icon-size:4; z-index: 1;} |
| 52 | node|z1-17 { symbol-shape: square; symbol-stroke-color: rosybrown; symbol-fill-color: rosybrown; symbol-size: 1; z-index:1} |
| 53 | node|z18 { symbol-shape: square; symbol-stroke-color: navy; symbol-fill-color: rosybrown; symbol-size:5; z-index:1} |
| 54 | node|z19- { symbol-shape: square; symbol-stroke-color: navy; symbol-fill-color: rosybrown; symbol-size:6; z-index:1} |