Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
staubibr committed Dec 4, 2019
1 parent 73cfee6 commit 28ebdd5
Show file tree
Hide file tree
Showing 33 changed files with 1,345 additions and 1,990 deletions.
Binary file removed assets/logo.jpg
Binary file not shown.
1 change: 1 addition & 0 deletions basic-tools
Submodule basic-tools added at 6c9b5d
File renamed without changes.
10 changes: 4 additions & 6 deletions README.md → lode-viewer-temp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ Population to Building Ratio : https://csbp-cpse.github.io/lode-viewer/index-en.
Building provenance : https://csbp-cpse.github.io/lode-viewer/index-en.html?context=source<br>
Building Area to Vertices Ratio: https://csbp-cpse.github.io/lode-viewer/index-en.html?context=geometry<br>
Proximity to public transit: https://csbp-cpse.github.io/lode-viewer/index-en.html?context=trips<br>
Proximity to libraries: https://csbp-cpse.github.io/lode-viewer/index-en.html?context=library<br>

---------------------------------------------------------------------

Une visionneuse pour les données de l'ECDO, incluant la base de données ouvertes de bâtiments (ODB). La visionneuse offre présentement des cartes pour plusieurs indicateurs. Les liens sont fournis ci-bas:

Proportion population à bâtiments : https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=boundary<br>
Source des bâtiments : https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=source<br>
Proportion surface à vertex: https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=geometry<br>
Proximité au transport en commun: https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=trips<br>
Proximité aux bibliothèques: https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=library<br>
Population to Building Ratio : https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=boundary<br>
Building provenance : https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=source<br>
Building Area to Vertices Ratio: https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=geometry<br>
Proximity to public transit: https://csbp-cpse.github.io/lode-viewer/index-fr.html?context=trips<br>
File renamed without changes.
Binary file added lode-viewer-temp/assets/layers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
149 changes: 149 additions & 0 deletions lode-viewer-temp/config/config.boundary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
var config = {
style : "mapbox://styles/deil-leid/ck36tlip73asa1cn6of81gugz",
layers: ["pr", "cd", "csd", "da", "db"],
title : {
"en" : "Population to Building Ratio",
"fr" : "Proportion de population par bâtiment"
},
legend: [{
color: [230, 230, 230],
label: {
en: "0 Buildings, 0 Population",
fr: "0 bâtiments, 0 population"
}
}, {
color: [204, 102, 153],
label: {
en: "0 Population",
fr: "0 population"
}
}, {
color: [204, 255, 51],
label: {
en: "0 Buildings",
fr: "0 bâtiments"
}
}, {
color: [255, 255, 204],
label: {
en: "Between 0 and 1.5",
fr: "Entre 0 et 1.5"
}
}, {
color: [161, 218, 180],
label: {
en: "Between 1.5 and 3",
fr: "Entre 1.5 et 3"
}
}, {
color: [65, 182, 196],
label: {
en: "Between 3 and 7",
fr: "Entre 3 et 7"
}
}, {
color: [44, 127, 184],
label: {
en: "Between 7 and 20",
fr: "Entre 7 et 20"
}
}, {
color: [37, 52, 148],
label: {
en: "More than 20",
fr: "Plus de 20"
}
}
],
toc: [{
id: "pr",
label: {
en: "Province (PR)",
fr: "Province (PR)"
}
}, {
id: "cd",
label: {
en: "Census Division (CD)",
fr: "Division de recensement (DR)"
}
}, {
id: "csd",
label: {
en: "Census Subdivision (CSD)",
fr: "Sous-division de recensement (SDR)"
}
}, {
id: "da",
label: {
en: "Dissemination Area (DA)",
fr: "Aire de diffusion (AD)"
}
}, {
id: "db",
label: {
en: "Dissemination Block (DB)",
fr: "Bloc de diffusion (BD)"
}
},
],
selected: "da",
classes: [
'case',
['all', ['==', ['get', 'population'], 0], ['==', ['get', 'buildings'], 0]], '#color1',
['==', ['get', 'population'], 0], '#color2',
['==', ['get', 'buildings'], 0], '#color3',
['<', ['/', ['get', 'population'], ['get', 'buildings']], 1.5], '#color4',
['<', ['/', ['get', 'population'], ['get', 'buildings']], 3], '#color5',
['<', ['/', ['get', 'population'], ['get', 'buildings']], 7], '#color6',
['<', ['/', ['get', 'population'], ['get', 'buildings']], 20], '#color7',
'#color8'
],
fields: [{
id: "uid",
label: {
en: "ID",
fr: "ID"
}
}, {
id: "name",
label: {
en: "Name",
fr: "Nom"
}
}, {
id: "name_en",
label: {
en: "Name (english)",
fr: "Nom (anglais)"
}
}, {
id: "name_fr",
label: {
en: "Name (french)",
fr: "Nom (français)"
}
}, {
id: "population",
label: {
en: "Population",
fr: "Population"
}
}, {
id: "buildings",
label: {
en: "Buildings",
fr: "Bâtiments"
}
}, {
id: "ratio",
label: {
en: "Ratio",
fr: "Proportion"
},
polish: ["/", "population", "buildings"]
}
]
}

export default config;
95 changes: 95 additions & 0 deletions lode-viewer-temp/config/config.education.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
var config = {
style : "mapbox://styles/deil-leid/ck3jaa8us2obu1cpjxnwcsi3d",
layers: ["db"],
title: {
"en": "Proximity to Education Facilities",
"fr": "Proximité aux établissements d'éducation"
},
subtitle: {
"en": "(preliminary experimental results)",
"fr": "(résultats expérimentaux préliminaires)"
},
legend: [{
color: [200, 200, 200],
label: {
en: "Not available",
fr: "Non-disponible"
}
}, {
color: [255, 255, 255],
label: {
en: "Equal to 0.000",
fr: "Égal à 0.000"
}
}, {
color: [215, 48, 39],
label: {
en: "Between 0.000 and 0.005",
fr: "Entre 0.000 et 0.005"
}
}, {
color: [252, 141, 89],
label: {
en: "Between 0.005 and 0.010",
fr: "Entre 0.005 et 0.010"
}
}, {
color: [254, 224, 139],
label: {
en: "Between 0.010 and 0.020",
fr: "Entre 0.010 et 0.020"
}
}, {
color: [217, 239, 139],
label: {
en: "Between 0.020 and 0.040",
fr: "Entre 0.020 et 0.040"
}
}, {
color: [145, 207, 96],
label: {
en: "Between 0.040 and 0.070",
fr: "Entre 0.040 et 0.070"
}
}, {
color: [26, 152, 80],
label: {
en: "More than 0.070",
fr: "Plus de 0.070"
}
}
],
selected: "db",
classes: ['case', ['==', ['get', 'educ_prx'], null], '#color1',
['==', ['get', 'educ_prx'], 0], '#color2',
['<', ['get', 'educ_prx'], 0.005], '#color3',
['<', ['get', 'educ_prx'], 0.010], '#color4',
['<', ['get', 'educ_prx'], 0.020], '#color5',
['<', ['get', 'educ_prx'], 0.040], '#color6',
['<', ['get', 'educ_prx'], 0.070], '#color7',
'#color8'],

fields: [{
id : "DBUID",
label : {
en : "Dissemination block",
fr : "Bloc de diffusion"
}
},{
id : "CSDUID",
label : {
en : "Census Subdivision",
fr : "Sous-division de recensement"
}
},{
id: "educ_prx",
label: {
en: "Proximity to education facilities",
fr: "Proximité aux établissements d'éducation"
},
fixed: 4
}
]
}

export default config;
80 changes: 80 additions & 0 deletions lode-viewer-temp/config/config.geometry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
var config = {
style : "mapbox://styles/deil-leid/ck36tlip73asa1cn6of81gugz",
layers: ["bc", "ab", "sk", "mb", "on", "qc", "pe", "ns", "nb", "nl", "nt", "nu", "yt"],
title : {
"en" : "Area Per Vertex",
"fr" : "Surface Par Vertex"
},
legend: [{
color: [255, 255, 178],
label: {
en: "Between 0 et 20 sqm/v",
fr: "Entre 0 et 20 m2/v"
}
}, {
color: [254, 204, 92],
label: {
en: "Between 20 et 100 sqm/v",
fr: "Entre 20 et 100 m2/v"
}
}, {
color: [253, 141, 60],
label: {
en: "Between 100 et 500 sqm/v",
fr: "Entre 100 et 500 m2/v"
}
}, {
color: [240, 59, 32],
label: {
en: "Between 500 et 5000 sqm/v",
fr: "Entre 500 et 5000 m2/v"
}
}, {
color: [189, 0, 38],
label: {
en: "More than 5000 sqm/v",
fr: "Plus de 5000 m2/v"
}
}
],
classes: [
'case',
['<', ['get', 'area_vert'], 20], '#color1',
['<', ['get', 'area_vert'], 100], '#color2',
['<', ['get', 'area_vert'], 500], '#color3',
['<', ['get', 'area_vert'], 5000], '#color4',
'#color5'
],
fields: [{
id: "area",
label: {
en: "Area",
fr: "Superficie"
},
fixed: 2
}, {
id: "area_vert",
label: {
en: "Area to vertices",
fr: "Surface à vertex"
},
fixed: 2
}, {
id: "perimeter",
label: {
en: "Perimeter",
fr: "Périmètre"
},
fixed: 2
}, {
id: "peri_vert",
label: {
en: "Perimeter to vertices",
fr: "Périmètre à vertex"
},
fixed: 2
}
]
}

export default config;
Loading

0 comments on commit 28ebdd5

Please sign in to comment.