This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 63afa24c11 feat: Add Czech Republic country map. (#28035)
63afa24c11 is described below
commit 63afa24c115ef29d623d2acf4f3ec6786466e33c
Author: Martin Spudich <[email protected]>
AuthorDate: Thu Apr 25 21:28:25 2024 +0200
feat: Add Czech Republic country map. (#28035)
---
.../scripts/Country Map GeoJSON Generator.ipynb | 1 +
.../legacy-plugin-chart-country-map/src/countries.ts | 2 ++
.../src/countries/czech_republic.geojson | 19 +++++++++++++++++++
3 files changed, 22 insertions(+)
diff --git
a/superset-frontend/plugins/legacy-plugin-chart-country-map/scripts/Country Map
GeoJSON Generator.ipynb
b/superset-frontend/plugins/legacy-plugin-chart-country-map/scripts/Country Map
GeoJSON Generator.ipynb
index 543b11dbfc..cae606371a 100644
--- a/superset-frontend/plugins/legacy-plugin-chart-country-map/scripts/Country
Map GeoJSON Generator.ipynb
+++ b/superset-frontend/plugins/legacy-plugin-chart-country-map/scripts/Country
Map GeoJSON Generator.ipynb
@@ -238,6 +238,7 @@
" 'costa rica',\n",
" 'cuba',\n",
" 'cyprus',\n",
+ " 'czech republic'\n",
" 'denmark',\n",
" 'dominican republic',\n",
" 'ecuador',\n",
diff --git
a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
index ed1af3ac3e..6e3334e13d 100755
--- a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
+++ b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
@@ -35,6 +35,7 @@ import colombia from './countries/colombia.geojson';
import costa_rica from './countries/costa_rica.geojson';
import cuba from './countries/cuba.geojson';
import cyprus from './countries/cyprus.geojson';
+import czech_republic from './countries/czech_republic.geojson';
import denmark from './countries/denmark.geojson';
import dominican_republic from './countries/dominican_republic.geojson';
import ecuador from './countries/ecuador.geojson';
@@ -134,6 +135,7 @@ export const countries = {
costa_rica,
cuba,
cyprus,
+ czech_republic,
denmark,
dominican_republic,
ecuador,
diff --git
a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/czech_republic.geojson
b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/czech_republic.geojson
new file mode 100644
index 0000000000..7b91ec4936
--- /dev/null
+++
b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/czech_republic.geojson
@@ -0,0 +1,19 @@
+{
+ "type": "FeatureCollection",
+ "crs": { "type": "name", "properties": { "name":
"urn:ogc:def:crs:OGC:1.3:CRS84" } },
+ "features": [
+{"type": "Feature", "nationalCode": "19", "localId": "AU.2.19", "name":
"Hlavn\u00ed m\u011bsto Praha", "id": "CZ0100000000", "geometry": {"type":
"Polygon", "coordinates": [[[14.528258, 49.999837], [14.528388, 49.999912],
[14.528552, 50.000007], [14.52876, 50.000127], [14.528838, 50.000172],
[14.529196, 50.000379], [14.529212, 50.000386], [14.529214, 50.000387],
[14.52925, 50.000402], [14.529345, 50.000443], [14.529379, 50.000457],
[14.529414, 50.000472], [14.529605, 50.000549], [14.529 [...]
+{"type": "Feature", "nationalCode": "27", "localId": "AU.2.27", "name":
"St\u0159edo\u010desk\u00fd kraj", "id": "CZ0200000000", "geometry": {"type":
"Polygon", "coordinates": [[[15.4973, 49.970052], [15.497103, 49.970144],
[15.496787, 49.970295], [15.496649, 49.970403], [15.496514, 49.970513],
[15.496382, 49.970625], [15.496244, 49.970736], [15.496093, 49.970858],
[15.495945, 49.97097], [15.495856, 49.971038], [15.495801, 49.97108],
[15.495793, 49.971086], [15.495633, 49.971202], [15.49 [...]
+{"type": "Feature", "nationalCode": "35", "localId": "AU.2.35", "name":
"Jiho\u010desk\u00fd kraj", "id": "CZ0310000000", "geometry": {"type":
"Polygon", "coordinates": [[[14.925793, 49.482316], [14.925835, 49.482352],
[14.925845, 49.48236], [14.925937, 49.482327], [14.925968, 49.48236],
[14.925925, 49.482383], [14.925991, 49.482427], [14.926019, 49.482454],
[14.926134, 49.48243], [14.926224, 49.482424], [14.926313, 49.482377],
[14.926323, 49.482354], [14.926543, 49.482321], [14.926588, [...]
+{"type": "Feature", "nationalCode": "43", "localId": "AU.2.43", "name":
"Plze\u0148sk\u00fd kraj", "id": "CZ0320000000", "geometry": {"type":
"Polygon", "coordinates": [[[12.580676, 49.90343], [12.580671, 49.903518],
[12.580365, 49.903586], [12.580284, 49.903533], [12.580139, 49.903717],
[12.579908, 49.903758], [12.579801, 49.903813], [12.579664, 49.903736],
[12.579543, 49.903766], [12.579183, 49.90373], [12.579105, 49.903782],
[12.579079, 49.903787], [12.57895, 49.903712], [12.578401, 4 [...]
+{"type": "Feature", "nationalCode": "51", "localId": "AU.2.51", "name":
"Karlovarsk\u00fd kraj", "id": "CZ0410000000", "geometry": {"type": "Polygon",
"coordinates": [[[12.580676, 49.90343], [12.58078, 49.903426], [12.581013,
49.903534], [12.581082, 49.903382], [12.581372, 49.90328], [12.58149,
49.903293], [12.581744, 49.903267], [12.581864, 49.903349], [12.581851,
49.903363], [12.581884, 49.903385], [12.582102, 49.903184], [12.582148,
49.903072], [12.582284, 49.90298], [12.582625, 49.90 [...]
+{"type": "Feature", "nationalCode": "60", "localId": "AU.2.60", "name":
"\u00dasteck\u00fd kraj", "id": "CZ0420000000", "geometry": {"type": "Polygon",
"coordinates": [[[14.506469, 50.805714], [14.506475, 50.805694], [14.50649,
50.805643], [14.506504, 50.805599], [14.506559, 50.805577], [14.506618,
50.805554], [14.506689, 50.805529], [14.506663, 50.805505], [14.506581,
50.805425], [14.506643, 50.805415], [14.506752, 50.805396], [14.506752,
50.805375], [14.506753, 50.805343], [14.506702, [...]
+{"type": "Feature", "nationalCode": "78", "localId": "AU.2.78", "name":
"Libereck\u00fd kraj", "id": "CZ0510000000", "geometry": {"type": "Polygon",
"coordinates": [[[14.506469, 50.805714], [14.506535, 50.80572], [14.506578,
50.805723], [14.506549, 50.805812], [14.50642, 50.805788], [14.506341,
50.805772], [14.50631, 50.805819], [14.506291, 50.805846], [14.506257,
50.805853], [14.506173, 50.805868], [14.50612, 50.805878], [14.506099,
50.805902], [14.506087, 50.805916], [14.506058, 50.805 [...]
+{"type": "Feature", "nationalCode": "86", "localId": "AU.2.86", "name":
"Kr\u00e1lov\u00e9hradeck\u00fd kraj", "id": "CZ0520000000", "geometry":
{"type": "Polygon", "coordinates": [[[15.770877, 50.172756], [15.77088,
50.172782], [15.770948, 50.17276], [15.771033, 50.172732], [15.771073,
50.172719], [15.771127, 50.172694], [15.77115, 50.172993], [15.771717,
50.172906], [15.772363, 50.173969], [15.773232, 50.174418], [15.773824,
50.174662], [15.774286, 50.174853], [15.774659, 50.175009], [ [...]
+{"type": "Feature", "nationalCode": "94", "localId": "AU.2.94", "name":
"Pardubick\u00fd kraj", "id": "CZ0530000000", "geometry": {"type": "Polygon",
"coordinates": [[[15.770877, 50.172756], [15.770874, 50.17273], [15.770872,
50.172722], [15.77082, 50.172548], [15.770814, 50.172541], [15.770635,
50.172306], [15.770031, 50.171517], [15.769815, 50.171283], [15.76973,
50.171191], [15.769293, 50.170653], [15.769168, 50.17051], [15.768814,
50.170105], [15.768638, 50.169863], [15.768347, 50.16 [...]
+{"type": "Feature", "nationalCode": "108", "localId": "AU.2.108", "name":
"Kraj Vyso\u010dina", "id": "CZ0630000000", "geometry": {"type": "Polygon",
"coordinates": [[[14.925793, 49.482316], [14.925787, 49.482267], [14.925765,
49.482201], [14.925733, 49.482105], [14.925399, 49.481557], [14.925337,
49.481454], [14.925325, 49.481379], [14.92532, 49.481347], [14.92531,
49.481275], [14.925297, 49.48117], [14.925298, 49.480978], [14.925299,
49.480874], [14.92525, 49.480753], [14.925218, 49.48 [...]
+{"type": "Feature", "nationalCode": "116", "localId": "AU.2.116", "name":
"Jihomoravsk\u00fd kraj", "id": "CZ0640000000", "geometry": {"type": "Polygon",
"coordinates": [[[15.99197, 49.03082], [15.990972, 49.031095], [15.990891,
49.031117], [15.990537, 49.031092], [15.990248, 49.031172], [15.990225,
49.031229], [15.9897, 49.031321], [15.989221, 49.031454], [15.989068,
49.031526], [15.988955, 49.031542], [15.988513, 49.031649], [15.988204,
49.031762], [15.988117, 49.031773], [15.98725, 49 [...]
+{"type": "Feature", "nationalCode": "124", "localId": "AU.2.124", "name":
"Olomouck\u00fd kraj", "id": "CZ0710000000", "geometry": {"type": "Polygon",
"coordinates": [[[17.217389, 49.838108], [17.217266, 49.838154], [17.217221,
49.83817], [17.217174, 49.838191], [17.217213, 49.83827], [17.217237,
49.838555], [17.217238, 49.838629], [17.217189, 49.83876], [17.217233,
49.838888], [17.217225, 49.838945], [17.217243, 49.839114], [17.217414,
49.839486], [17.217538, 49.839638], [17.217703, 49. [...]
+{"type": "Feature", "nationalCode": "132", "localId": "AU.2.132", "name":
"Moravskoslezsk\u00fd kraj", "id": "CZ0800000000", "geometry": {"type":
"Polygon", "coordinates": [[[17.217389, 49.838108], [17.217391, 49.838107],
[17.217399, 49.838104], [17.217433, 49.838092], [17.217733, 49.838181],
[17.217767, 49.83817], [17.21782, 49.838153], [17.217847, 49.838144],
[17.217858, 49.83814], [17.217768, 49.837902], [17.217771, 49.837707],
[17.217772, 49.837654], [17.217731, 49.837449], [17.21772 [...]
+{"type": "Feature", "nationalCode": "141", "localId": "AU.2.141", "name":
"Zl\u00ednsk\u00fd kraj", "id": "CZ0720000000", "geometry": {"type": "Polygon",
"coordinates": [[[17.17167, 49.082837], [17.172277, 49.082952], [17.17243,
49.082987], [17.172749, 49.083109], [17.172986, 49.083206], [17.173241,
49.083276], [17.173687, 49.083423], [17.173953, 49.083488], [17.174048,
49.083531], [17.174249, 49.083546], [17.174438, 49.083574], [17.174787,
49.083647], [17.175723, 49.083891], [17.176274, [...]
+}