superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Adds geodata for Myanmar (#5697)
Date Wed, 22 Aug 2018 16:26:18 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e057d5  Adds geodata for Myanmar (#5697)
0e057d5 is described below

commit 0e057d50f1e764e9f0b31fd279742a28b9222741
Author: Joshua Brooks <josh.vdbroek@gmail.com>
AuthorDate: Thu Aug 23 00:26:15 2018 +0800

    Adds geodata for Myanmar (#5697)
    
    * Add geojson for Myanmar
    
    * Adds 'myanmar.geojson' file
    
    * Adds "iso-3166" codes
---
 superset/assets/src/explore/controls.jsx           |  1 +
 .../src/visualizations/countries/myanmar.geojson   | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/superset/assets/src/explore/controls.jsx b/superset/assets/src/explore/controls.jsx
index ddf7107..68fcb05 100644
--- a/superset/assets/src/explore/controls.jsx
+++ b/superset/assets/src/explore/controls.jsx
@@ -551,6 +551,7 @@ export const controls = {
       'Italy',
       'Portugal',
       'Morocco',
+      'Myanmar',
       'Netherlands',
       'Russia',
       'Singapore',
diff --git a/superset/assets/src/visualizations/countries/myanmar.geojson b/superset/assets/src/visualizations/countries/myanmar.geojson
new file mode 100644
index 0000000..9efc261
--- /dev/null
+++ b/superset/assets/src/visualizations/countries/myanmar.geojson
@@ -0,0 +1,22 @@
+{
+"type": "FeatureCollection",
+"name": "myanmar",
+"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
+"features": [
+{ "type": "Feature", "properties": { "id": 1, "name": "Kachin State", "pcode": "MMR001",
"iso": "MM-11" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 97.6383, 23.8632
], [ 97.6062, 23.8241 ], [ 97.5719, 23.8155 ], [ 97.5465, 23.8228 ], [ 97.4755, 23.8186 ],
[ 97.4532, 23.7986 ], [ 97.4667, 23.7809 ], [ 97.4086, 23.739 ], [ 97.3727, 23.7454 ], [ 97.3481,
23.7266 ], [ 97.3404, 23.6949 ], [ 97.3207, 23.7195 ], [ 97.3044, 23.7045 ], [ 97.2686, 23.7125
], [ 97.1796, 23.6712  [...]
+{ "type": "Feature", "properties": { "id": 2, "name": "Kayah State", "pcode": "MMR002", "iso":
"MM-12" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 97.8633, 19.5748 ],
[ 97.8572, 19.5454 ], [ 97.8736, 19.4936 ], [ 97.8389, 19.4487 ], [ 97.8247, 19.423 ], [ 97.8017,
19.4025 ], [ 97.806, 19.3823 ], [ 97.8006, 19.3517 ], [ 97.8308, 19.3009 ], [ 97.8259, 19.2815
], [ 97.8042, 19.2874 ], [ 97.7828, 19.2639 ], [ 97.8022, 19.2577 ], [ 97.844, 19.2203 ],
[ 97.8393, 19.1939 ],  [...]
+{ "type": "Feature", "properties": { "id": 3, "name": "Kayin State", "pcode": "MMR003", "iso":
"MM-13" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 96.8342, 19.3327 ],
[ 96.8222, 19.3243 ], [ 96.8198, 19.2547 ], [ 96.8414, 19.2183 ], [ 96.8493, 19.1751 ], [
96.8896, 19.1504 ], [ 96.9026, 19.1562 ], [ 96.9121, 19.1264 ], [ 96.9307, 19.1064 ], [ 96.923,
19.0934 ], [ 96.9504, 19.0709 ], [ 96.9303, 19.0522 ], [ 96.9532, 19.0195 ], [ 96.9427, 18.9977
], [ 96.9666, 18.9596 ] [...]
+{ "type": "Feature", "properties": { "id": 4, "name": "Chin State", "pcode": "MMR004", "iso":
"MM-14" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 94.1422, 23.8348 ],
[ 94.1336, 23.8183 ], [ 94.1373, 23.7742 ], [ 94.153, 23.7391 ], [ 94.1373, 23.7207 ], [ 94.1497,
23.6911 ], [ 94.1281, 23.6652 ], [ 94.1321, 23.6515 ], [ 94.1193, 23.6129 ], [ 94.1181, 23.557
], [ 94.111, 23.5433 ], [ 94.0788, 23.5396 ], [ 94.0692, 23.5557 ], [ 94.04, 23.5734 ], [
94.0161, 23.5414 ], [ 9 [...]
+{ "type": "Feature", "properties": { "id": 5, "name": "Sagaing Region", "pcode": "MMR005",
"iso": "MM-01" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 97.0666, 27.0927
], [ 97.0502, 27.056 ], [ 97.0256, 27.0376 ], [ 96.9976, 27.0356 ], [ 96.9859, 27.0237 ],
[ 96.9546, 27.0329 ], [ 96.9423, 27.0448 ], [ 96.9085, 27.0354 ], [ 96.8929, 27.0464 ], [
96.8281, 27.0447 ], [ 96.7881, 27.0309 ], [ 96.741, 27.0392 ], [ 96.7193, 27.0015 ], [ 96.6966,
26.9929 ], [ 96.6467, 27.0079 [...]
+{ "type": "Feature", "properties": { "id": 6, "name": "Tanintharyi Region", "pcode": "MMR006",
"iso": "MM-05" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 98.2625, 10.0624
], [ 98.2789, 10.0452 ], [ 98.2928, 10.0173 ], [ 98.2599, 10.0144 ], [ 98.2632, 9.999 ], [
98.2503, 9.9815 ], [ 98.25, 9.9502 ], [ 98.2269, 9.9396 ], [ 98.201, 9.9396 ], [ 98.1676,
9.9218 ], [ 98.164, 9.886 ], [ 98.1429, 9.8528 ], [ 98.1147, 9.8655 ], [ 98.129, 9.8846 ],
[ 98.1172, 9.9031 ], [ 98.127 [...]
+{ "type": "Feature", "properties": { "id": 7, "name": "Bago Region", "pcode": "MMR007", "iso":
"MM-02" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 96.3916, 19.4739 ],
[ 96.4016, 19.4593 ], [ 96.4347, 19.4376 ], [ 96.4099, 19.4061 ], [ 96.4275, 19.3796 ], [
96.4459, 19.3735 ], [ 96.4611, 19.3531 ], [ 96.4566, 19.3118 ], [ 96.4519, 19.3028 ], [ 96.4682,
19.2961 ], [ 96.4966, 19.2069 ], [ 96.5439, 19.1815 ], [ 96.5306, 19.1574 ], [ 96.4918, 19.1458
], [ 96.5132, 19.133 ] [...]
+{ "type": "Feature", "properties": { "id": 9, "name": "Magway Region", "pcode": "MMR009",
"iso": "MM-03" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 95.342, 21.576
], [ 95.3398, 21.5525 ], [ 95.3199, 21.5041 ], [ 95.3307, 21.4763 ], [ 95.319, 21.4543 ],
[ 95.2733, 21.4526 ], [ 95.2751, 21.4218 ], [ 95.2376, 21.396 ], [ 95.2279, 21.382 ], [ 95.1845,
21.345 ], [ 95.1705, 21.3178 ], [ 95.1377, 21.3272 ], [ 95.0334, 21.2797 ], [ 95.0193, 21.2759
], [ 94.9929, 21.2358 ], [ [...]
+{ "type": "Feature", "properties": { "id": 10, "name": "Mandalay Region", "pcode": "MMR010",
"iso": "MM-04" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 96.3926, 23.5696
], [ 96.3575, 23.5489 ], [ 96.3389, 23.5132 ], [ 96.31, 23.4982 ], [ 96.3172, 23.4766 ], [
96.2972, 23.4695 ], [ 96.298, 23.4463 ], [ 96.2777, 23.4202 ], [ 96.2494, 23.4003 ], [ 96.2276,
23.3681 ], [ 96.2337, 23.3397 ], [ 96.2176, 23.3317 ], [ 96.1903, 23.354 ], [ 96.1702, 23.3457
], [ 96.171, 23.3198  [...]
+{ "type": "Feature", "properties": { "id": 11, "name": "Mon State", "pcode": "MMR011", "iso":
"MM-15" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 97.5155, 16.5009 ],
[ 97.5673, 16.4889 ], [ 97.6022, 16.4922 ], [ 97.609, 16.4616 ], [ 97.5771, 16.3963 ], [ 97.5889,
16.3676 ], [ 97.5679, 16.3313 ], [ 97.5562, 16.2909 ], [ 97.5641, 16.2657 ], [ 97.5659, 16.2318
], [ 97.5596, 16.2027 ], [ 97.526, 16.1974 ], [ 97.5018, 16.2218 ], [ 97.4985, 16.2605 ],
[ 97.477, 16.2775 ], [ [...]
+{ "type": "Feature", "properties": { "id": 12, "name": "Rakhine State", "pcode": "MMR012",
"iso": "MM-16" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 93.6255, 18.9003
], [ 93.6366, 18.8892 ], [ 93.6722, 18.8768 ], [ 93.7065, 18.8741 ], [ 93.7486, 18.8882 ],
[ 93.7553, 18.8546 ], [ 93.7493, 18.8288 ], [ 93.76, 18.8051 ], [ 93.7491, 18.788 ], [ 93.7588,
18.7327 ], [ 93.7359, 18.7046 ], [ 93.7264, 18.6762 ], [ 93.7033, 18.6665 ], [ 93.6639, 18.6699
], [ 93.596, 18.731 ], [...]
+{ "type": "Feature", "properties": { "id": 13, "name": "Yangon Region", "pcode": "MMR013",
"iso": "MM-06" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 96.3117, 17.1927
], [ 96.3189, 17.1843 ], [ 96.3335, 17.1686 ], [ 96.3659, 17.1495 ], [ 96.3906, 17.1167 ],
[ 96.4037, 17.0729 ], [ 96.3985, 17.0431 ], [ 96.3809, 17.0189 ], [ 96.3797, 16.999 ], [ 96.4057,
16.9962 ], [ 96.4064, 16.98 ], [ 96.4774, 16.9646 ], [ 96.4891, 16.9795 ], [ 96.5169, 16.9941
], [ 96.5633, 16.9823  [...]
+{ "type": "Feature", "properties": { "id": 14, "name": "Shan State", "pcode": "MMR014", "iso":
"MM-17" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 97.6383, 23.8632 ],
[ 97.7066, 23.8653 ], [ 97.7297, 23.8992 ], [ 97.7489, 23.9023 ], [ 97.7707, 23.9364 ], [
97.8097, 23.9502 ], [ 97.8834, 23.9965 ], [ 97.8968, 24.0154 ], [ 97.9434, 24.022 ], [ 97.9813,
24.0358 ], [ 97.9954, 24.0507 ], [ 98.041, 24.0739 ], [ 98.0769, 24.0801 ], [ 98.1199, 24.0947
], [ 98.1984, 24.1018 ], [...]
+{ "type": "Feature", "properties": { "id": 17, "name": "Ayeyarwady Region", "pcode": "MMR017",
"iso": "MM-07" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 95.2486, 15.8501
], [ 95.2309, 15.871 ], [ 95.2737, 15.9566 ], [ 95.2722, 16.0313 ], [ 95.2963, 16.0564 ],
[ 95.3035, 16.077 ], [ 95.3233, 16.0868 ], [ 95.3446, 16.0419 ], [ 95.3421, 15.9863 ], [ 95.3358,
15.9678 ], [ 95.3135, 15.9456 ], [ 95.2755, 15.8775 ], [ 95.2486, 15.8501 ] ] ], [ [ [ 95.1827,
16.1123 ], [ 95.1 [...]
+{ "type": "Feature", "properties": { "id": 18, "name": "Naypyitaw", "pcode": "MMR018", "iso":
"MM-18" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 96.5048, 20.1931 ],
[ 96.4858, 20.1627 ], [ 96.4604, 20.1541 ], [ 96.4411, 20.1363 ], [ 96.456, 20.0977 ], [ 96.4758,
20.07 ], [ 96.4678, 20.056 ], [ 96.443, 20.0519 ], [ 96.4437, 20.0327 ], [ 96.4203, 20.0204
], [ 96.3711, 20.0243 ], [ 96.3635, 20.013 ], [ 96.393, 19.9645 ], [ 96.442, 19.9152 ], [
96.455, 19.8937 ], [ 96.44 [...]
+]
+}


Mime
View raw message