Hazard Map for Japan
Bug #1164907 reported by
Ben Wyss
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Platform |
Fix Committed
|
Undecided
|
Ben Wyss |
Bug Description
Create a hazard map for Japan. There are two models 21 and 22. Both maps need to be rendered for the whole model area and cut to the land area
Changed in oq-platform: | |
status: | New → Fix Committed |
assignee: | nobody → Ben Wyss (bmwyss) |
no longer affects: | openquake |
To post a comment you must log in.
To create the hazard map for Japan I first converted the xml files into csv, then imported them into QGIS and saved them as shapefiles. I then applied a spatial index to the shapefile using mapnik.
Next I created a contour of the map using the QGIS contour plugin.
Next I imported the shapfiles into tilemill and used the following catocss:
#hazard_ cut_contour_ 22 { join:round; join:round; color:white; color:white;
line-width:1;
line-color:white;
line-opacity:.4;
//line-
//line-gamma:1;
//line-
line-smooth:1;
[zoom = 7]{
line-width:2;
line-
line-opacity:.3;
}
[zoom = 8]{
line-width:4;
line-
line-opacity:.5;
}
}
#hazard_ japan_22_ cut { allow-overlap: true; line-color: orange; line-opacity: 0.3; line-width: 3; fill:#CC0D56; marker- fill-opacity: 0.9} fill:#E60000; marker- fill-opacity: 0.8} fill:#FF0000; marker- fill-opacity: 0.8} fill:#FF3D2F; marker- fill-opacity: 0.8} fill:#FF8644; marker- fill-opacity: 0.8} fill:#FFAC53; marker- fill-opacity: 0.7} fill:#FFB858; marker- fill-opacity: 0.6} fill:#F5CB5F; marker- fill-opacity: 0.5} fill:#EFD462; marker- fill-opacity: 0.4} fill:#EADA65; marker- fill-opacity: 0.35; marker- line-opacity: 0.2} fill:#E3E86A; marker- fill-opacity: 0.25; marker- line-opacity: 0.05} fill-opacity: 0; marker- line-opacity: 0.0}
marker-
marker-
//marker-
marker-width:5;
marker-
[iml<=150] {marker-
[iml<=110] {marker-
[iml<=100] {marker-
[iml<=90] {marker-
[iml<=80] {marker-
[iml<=70] {marker-
[iml<=60] {marker-
[iml<=50] {marker-
[iml<=40] {marker-
[iml<=30] {marker-
[iml<=20] {marker-
[iml<=19] {marker-fill: red; marker-
[zoom = 1]{ width:3. 5; line-width: 0.01; line-width: 0.01; width:1. 5; line-width: 0.05; line-opacity: 0.1; line-width: 0.1; width:3. 7; line-width: .3; width:5. 6; line-width: 0.7; allow-overlap: true; fill:#CC0D56; marker- fill-opacity: 0.9} fill:#E60000; marker- fill-opacity: 0.8} fill:#FF0000; marker- fill-opacity: 0.8} fill:#FF3D2F; marker- fill-opacity: 0.8} fill:#FF8644; marker- fill-opacity: 0.8} fill:#FFAC53; marker- fill-opacity: 0.7} fill:#FFB858; marker- fill-opacity: 0.6} fill:#F5CB5F; marker- fill-opacity: 0.5} fill:#EFD462; marker- fill-opacity: 0.4} fill:#EADA65; marker- fill-opacity: 0.35; marker- line-opacity: 0.2} fill:#E3E86A; marker- fill-opacity: 0.25; marker- line-opacity: 0.05} fill-opacity: 0; marker- line-opacity: 0.0} width:10. 1; line-width: 2; allow-overlap: true; fill:#CC0D56; marker- fill-opacity: 0.9} fill:#E60000; marker- fill-opacity: 0.8} fill:#FF0000; marker- fill-opacity: 0.8}
marker-
marker-
}
[zoom = 2]{
marker-width:1;
marker-
}
[zoom = 3]{
marker-
marker-
//marker-
}
[zoom = 4]{
marker-width:2;
marker-
}
[zoom = 5]{
marker-
marker-
} marker-line-width: 5.9;
marker-width: 24;
[zoom = 6]{
marker-
marker-
marker-
[iml<=150] {marker-
[iml<=110] {marker-
[iml<=100] {marker-
[iml<=90] {marker-
[iml<=80] {marker-
[iml<=70] {marker-
[iml<=60] {marker-
[iml<=50] {marker-
[iml<=40] {marker-
[iml<=30] {marker-
[iml<=20] {marker-
[iml<=19] {marker-fill: red; marker-
}
[zoom = 7]{
marker-
marker-
marker-
[iml<=150] {marker-
[iml<=110] {marker-
[iml<=100] {marker-
[iml<=90] {marker-fil...