You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/10/22 06:13:26 UTC
(superset) branch draft/country-map-scripts updated (25b1a4ae97c -> d96d732c66c)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch draft/country-map-scripts
in repository https://gitbox.apache.org/repos/asf/superset.git
from 25b1a4ae97c feat(country-map): prototype per-country build scripts as a notebook alternative
add 937f631ff6b feat(country-map): convert remaining special-cased countries + plain catalog
add f467acb4d9a fix(country-map): restore the lost Italy regions+provinces display label
add 410b8472f39 chore(country-map): regenerate iran/russia/uk/south_africa from current sources
add d96d732c66c chore(country-map): retire the notebook in favor of build_maps.py
No new revisions were added by this update.
Summary of changes:
.../admin_docs/configuration/country-map-tools.mdx | 17 +-
superset-frontend/package.json | 2 +-
.../plugins/plugin-chart-country-map/README.md | 19 +-
.../scripts/Country Map GeoJSON Generator.ipynb | Bin 228908 -> 0 bytes
.../plugin-chart-country-map/scripts/build_maps.py | 129 +++++++---
.../scripts/maps/assemble.py | 84 +++++++
.../scripts/maps/catalog.py | 265 +++++++++++++++++++++
.../scripts/maps/context.py | 29 ++-
.../scripts/maps/countries/__init__.py | 65 ++++-
.../scripts/maps/countries/china.py | 58 +++++
.../maps/countries/{italy.py => finland.py} | 46 ++--
.../scripts/maps/countries/france.py | 245 +++++++++++++++++++
.../scripts/maps/countries/india.py | 66 +++++
.../scripts/maps/countries/{usa.py => iran.py} | 20 +-
.../scripts/maps/countries/kenya.py | 57 +++++
.../scripts/maps/countries/madagascar.py | 75 ++++++
.../scripts/maps/countries/{usa.py => malawi.py} | 32 ++-
.../maps/countries/{usa.py => netherlands.py} | 19 +-
.../scripts/maps/countries/{usa.py => norway.py} | 19 +-
.../scripts/maps/countries/philippines.py | 66 +++++
.../scripts/maps/countries/{usa.py => portugal.py} | 19 +-
.../scripts/maps/countries/russia.py | 57 +++++
.../scripts/maps/countries/south_africa.py | 57 +++++
.../scripts/maps/countries/{usa.py => spain.py} | 25 +-
.../scripts/maps/countries/turkey.py | 128 ++++++++++
.../scripts/maps/countries/{usa.py => uk.py} | 19 +-
.../maps/countries/{italy.py => ukraine.py} | 40 ++--
.../scripts/maps/countries/{usa.py => vietnam.py} | 34 ++-
.../plugin-chart-country-map/scripts/maps/data.py | 3 +-
.../scripts/maps/helpers.py | 85 ++++++-
.../scripts/maps/output.py | 5 +-
.../scripts/maps/preview.py | 6 +-
.../scripts/maps/ts_writer.py | 142 +++++++++++
.../src/countries/iran.geojson | Bin 134537 -> 134245 bytes
.../src/countries/russia.geojson | Bin 678517 -> 829185 bytes
.../src/countries/south_africa.geojson | Bin 57075 -> 57048 bytes
.../src/countries/uk.geojson | Bin 477503 -> 477503 bytes
37 files changed, 1736 insertions(+), 197 deletions(-)
delete mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/Country Map GeoJSON Generator.ipynb
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/assemble.py
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/catalog.py
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/china.py
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{italy.py => finland.py} (50%)
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/france.py
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/india.py
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => iran.py} (66%)
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/kenya.py
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/madagascar.py
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => malawi.py} (53%)
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => netherlands.py} (66%)
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => norway.py} (69%)
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/philippines.py
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => portugal.py} (69%)
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/russia.py
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/south_africa.py
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => spain.py} (69%)
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/turkey.py
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => uk.py} (66%)
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{italy.py => ukraine.py} (53%)
copy superset-frontend/plugins/plugin-chart-country-map/scripts/maps/countries/{usa.py => vietnam.py} (54%)
create mode 100644 superset-frontend/plugins/plugin-chart-country-map/scripts/maps/ts_writer.py