| | 1 | == Disaster damage assessment style == |
| | 2 | |
| | 3 | Displays colored icons and fill colors, to show tagging of visible damage scale of structures and filled patterns for roofing materials. Designed for use with [https://josm.openstreetmap.de/wiki/Presets/DisasterDamageAssessment this preset]. |
| | 4 | You can contact me via [osmwww:message/new/SeverinGeo my OSM username] |
| | 5 | |
| | 6 | {{{ |
| | 7 | #!style type="mapcss" |
| | 8 | meta |
| | 9 | { |
| | 10 | title: "Disaster damage assessment"; |
| | 11 | description: "Displays colored icons and fill colors, to show tagging of visible damage scale of structures and filled patterns for roof materials.; |
| | 12 | fr.description: "Affiche des icônes colorées et des couleurs de remplissage, pour montrer l'étiquetage de l'échelle des dommages visibles des structures et des motifs pour les matériaux de toiture."; |
| | 13 | es.description: "Muestra iconos de colores y colores de relleno, para mostrar el etiquetado de la escala de daños visibles de las estructuras y patrones de relleno para los materiales del techo."; |
| | 14 | pt.description: "Apresenta ícones coloridos e cores de preenchimento, para mostrar a marcação da escala de danos visíveis |
| | 15 | das estruturas e padrões preenchidos para materiais de cobertura."; |
| | 16 | pt_BR.description: "Apresenta ícones coloridos e cores de preenchimento, para mostrar a marcação da escala de danos visíveis das estruturas e padrões preenchidos para materiais de cobertura."; |
| | 17 | icon: "matrix-icons.png"; |
| | 18 | version: "0.2.[[revision]]_[[date]]"; |
| | 19 | author: "SeverinGeo"; |
| | 20 | link: "https://josm.openstreetmap.de/wiki/Styles/DisasterDamageAssessment"; |
| | 21 | } |
| | 22 | /* Adapted from jgc's style for HHI BAR damage assessment methodology: https://hhi.harvard.edu/publications/satellite-imagery-interpretation-guide-assessing-wind-disaster-damage-structures , adapted for OSM |
| | 23 | |
| | 24 | (mapcss style adapted from https://josm.openstreetmap.de/wiki/Styles/JP-Tsunami) |
| | 25 | */ |
| | 26 | node[damage=none] {icon-image: "medium-none-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 27 | node[damage=minimal] {icon-image: "medium-minimal-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 28 | node[damage=significant] {icon-image: "medium-significant-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 29 | node[damage=complete] {icon-image: "medium-complete-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 30 | |
| | 31 | node:selected { |
| | 32 | symbol-shape: square; |
| | 33 | symbol-size: 6; |
| | 34 | symbol-fill-color: node_selected#ff0000; |
| | 35 | symbol-stroke-color: node_selected#ff0000;} |
| | 36 | |
| | 37 | area[damage=none][!roof:material]:closed {fill-image: "noroofmaterial_none.png"; fill-opacity:0.4; width: 1.2; color: green;} |
| | 38 | area[damage=minimal][!roof:material]:closed {fill-image: "noroofmaterial_minimal.png"; fill-opacity:0.4; width: 1.2; color: yellow;} |
| | 39 | area[damage=significant][!roof:material]:closed {fill-image: "noroofmaterial_significant.png"; fill-opacity:0.4; width: 1.2; color: orange;} |
| | 40 | area[damage=complete][!roof:material]:closed {fill-image: "noroofmaterial_complete.png"; fill-opacity:0.4; width: 1.2; color: #fd5757;} |
| | 41 | |
| | 42 | area[damage=none][building=construction]:closed {fill-image: "othermaterials_none.png"; fill-opacity:0.4; width: 1.2; color: green;} |
| | 43 | area[damage=minimal][building=construction]:closed {fill-image: "othermaterials_minimal.png"; fill-opacity:0.4; width: 1.2; color: yellow;} |
| | 44 | area[damage=significant][building=construction]:closed {fill-image: "othermaterials_significant.png"; fill-opacity:0.4; width: 1.2; color: orange;} |
| | 45 | area[damage=complete][building=construction]:closed {fill-image: "othermaterials_complete.png"; fill-opacity:0.4; width: 1.2; color: #fd5757;} |
| | 46 | |
| | 47 | area[damage=none][roof:material=copper]:closed, |
| | 48 | area[damage=none][roof:material=eternit]:closed, |
| | 49 | area[damage=none][roof:material=glass]:closed, |
| | 50 | area[damage=none][roof:material=grass]:closed, |
| | 51 | area[damage=none][roof:material=gravel]:closed, |
| | 52 | area[damage=none][roof:material=roof_tiles]:closed, |
| | 53 | area[damage=none][roof:material=slate]:closed, |
| | 54 | area[damage=none][roof:material=stones]:closed, |
| | 55 | area[damage=none][roof:material=tar_paper]:closed, |
| | 56 | area[damage=none][roof:material=thatch]:closed, |
| | 57 | area[damage=none][roof:material=wood]:closed |
| | 58 | {fill-image: "othermaterials_none.png"; fill-opacity:0.4; width: 1.2; color: green;} |
| | 59 | area[damage=minimal][roof:material=copper]:closed, |
| | 60 | area[damage=minimal][roof:material=eternit]:closed, |
| | 61 | area[damage=minimal][roof:material=glass]:closed, |
| | 62 | area[damage=minimal][roof:material=grass]:closed, |
| | 63 | area[damage=minimal][roof:material=gravel]:closed, |
| | 64 | area[damage=minimal][roof:material=roof_tiles]:closed, |
| | 65 | area[damage=minimal][roof:material=slate]:closed, |
| | 66 | area[damage=minimal][roof:material=stones]:closed, |
| | 67 | area[damage=minimal][roof:material=tar_paper]:closed, |
| | 68 | area[damage=minimal][roof:material=thatch]:closed, |
| | 69 | area[damage=minimal][roof:material=wood]:closed |
| | 70 | {fill-image: "othermaterials_minimal.png"; fill-opacity: 0.4; width: 1.2; color: yellow;} |
| | 71 | area[damage=significant][roof:material=copper]:closed, |
| | 72 | area[damage=significant][roof:material=eternit]:closed, |
| | 73 | area[damage=significant][roof:material=glass]:closed, |
| | 74 | area[damage=significant][roof:material=grass]:closed, |
| | 75 | area[damage=significant][roof:material=gravel]:closed, |
| | 76 | area[damage=significant][roof:material=roof_tiles]:closed, |
| | 77 | area[damage=significant][roof:material=slate]:closed, |
| | 78 | area[damage=significant][roof:material=stones]:closed, |
| | 79 | area[damage=significant][roof:material=tar_paper]:closed, |
| | 80 | area[damage=significant][roof:material=thatch]:closed, |
| | 81 | area[damage=significant][roof:material=wood]:closed |
| | 82 | {fill-image: "othermaterials_significant.png"; fill-opacity: 0.4; width: 1.2; color: orange;} |
| | 83 | area[damage=complete][roof:material=copper]:closed, |
| | 84 | area[damage=complete][roof:material=eternit]:closed, |
| | 85 | area[damage=complete][roof:material=glass]:closed, |
| | 86 | area[damage=complete][roof:material=grass]:closed, |
| | 87 | area[damage=complete][roof:material=gravel]:closed, |
| | 88 | area[damage=complete][roof:material=roof_tiles]:closed, |
| | 89 | area[damage=complete][roof:material=slate]:closed, |
| | 90 | area[damage=complete][roof:material=stones]:closed, |
| | 91 | area[damage=complete][roof:material=tar_paper]:closed, |
| | 92 | area[damage=complete][roof:material=thatch]:closed, |
| | 93 | area[damage=complete][roof:material=wood]:closed |
| | 94 | {fill-image: "othermaterials_complete.png"; fill-opacity:0.4; width: 1.2; color: #fd5757;} |
| | 95 | |
| | 96 | area[damage=none][roof:material=concrete]:closed {fill-image: "concrete_none.png"; fill-opacity:0.4; width: 1.2; color: green;} |
| | 97 | area[damage=minimal][roof:material=concrete]:closed {fill-image: "concrete_minimal.png"; fill-opacity:0.4; width: 1.2; color: yellow;} |
| | 98 | area[damage=significant][roof:material=concrete]:closed {fill-image: "concrete_significant.png"; fill-opacity:0.4; width: 1.2; color: orange;} |
| | 99 | area[damage=complete][roof:material=concrete]:closed {fill-image: "concrete_complete.png"; fill-opacity:0.6; width: 1.2; color: #fd5757;} |
| | 100 | |
| | 101 | area[damage=none][roof:material=metal]:closed {fill-image: "metal_none.png"; fill-opacity: 0.4; width: 1.2; color: green;} |
| | 102 | area[damage=minimal][roof:material=metal]:closed {fill-image: "metal_minimal.png"; fill-opacity: 0.4; width: 1.2; color: yellow;} |
| | 103 | area[damage=significant][roof:material=metal]:closed {fill-image: "metal_significant.png"; fill-opacity: 0.4; width: 1.2; color: orange;} |
| | 104 | area[damage=complete][roof:material=metal]:closed {fill-image: "metal_complete.png"; fill-opacity: 0.6; width: 1.2; color: #fd5757;} |
| | 105 | |
| | 106 | /* Kept from PierZen's JP-Tsunami: */ |
| | 107 | /* control node size to help vizualise damaged zones at lower zoom levels */ |
| | 108 | node[note] { icon-size:4; z-index: 1;} |
| | 109 | node|z1-17 { symbol-shape: square; symbol-stroke-color: rosybrown; symbol-fill-color: rosybrown; symbol-size: 1; z-index:1} |
| | 110 | node|z18 { symbol-shape: square; symbol-stroke-color: navy; symbol-fill-color: rosybrown; symbol-size:5; z-index:1} |
| | 111 | node|z19- { symbol-shape: square; symbol-stroke-color: navy; symbol-fill-color: rosybrown; symbol-size:6; z-index:1} |
| | 112 | }}} |