fix(country-map): Madagascar's boundaries should have unique ISO - #42471
fix(country-map): Madagascar's boundaries should have unique ISO#42471lf-novelt wants to merge 16 commits into
Conversation
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Bito Review Skipped - No Changes Detected |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…set/#step-5--converting-geojson-file-to-go-against-right-hand-rule
ed2cd6c to
3254073
Compare
|
@jpmonette i've merged latest from master, but not sure your fix #29503 was correctly included, how can i check? does the plot look ok? else can you highlight the section you changed in the notebook? |
|
Lookin' good to me thus far... running Copilot to see if it catches anything I didn't spot myself. |
There was a problem hiding this comment.
Pull request overview
This pull request updates the legacy Country Map plugin’s built-in GeoJSON boundary data to resolve Madagascar admin1 identifier collisions (so regions map to unique IDs), and refreshes some other country boundary metadata produced by the generator.
Changes:
- Replace Madagascar admin1 boundaries with WHO AFRO-sourced regions and unique per-region identifiers.
- Update the Country Map GeoJSON generator notebook with a Madagascar-specific data source and processing steps.
- Refresh other shipped GeoJSONs (example shown: Morocco
NAME_1label corrections/diacritics).
Reviewed changes
Copilot reviewed 1 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/madagascar.geojson | Updates Madagascar admin1 features to use 23 regions with unique IDs (new properties.ISO values). |
| superset-frontend/plugins/legacy-plugin-chart-country-map/scripts/Country Map GeoJSON Generator.ipynb | Adds/updates Madagascar generation logic using WHO AFRO ArcGIS FeatureServer and post-processing. |
| superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/morocco.geojson | Refreshes region display names (e.g., diacritics/correct spellings) consistent with regenerated data. |
Code Review Agent Run #142cf9Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
Not sure why Kenya is showing as modified here... maybe the map data was updated upstream, and your-re-run of the notebook just "updated" it as bycatch? |
|
Really nice work here, @lf-novelt, especially the ISO caveat you added to the docs. One thing before I approve, though: the Madagascar cell doesn't cite a license the way the Kenya cell does. Could you add a note on what license the WHO AFRO GeoPortal data ( Happy to approve once that's sorted! |
|
thanks for the feedback, i will confirm with WHO AFRO about the license used there, but it should be someting like "Licence: CC BY-NC-SA 3.0 IGO" that they use in most if their publications. Will update the notebook and refresh Kenya as well. EDIT: i've added the license as coment and re-run the whole notebook and pushed all updated countries as well with latest boundaries from their respective source |

Resolve #41883
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
Same values / colors for multiple regions having the same ISO code.

After
Unique ISO values for regions


TESTING INSTRUCTIONS
Add a chart with Country Map > Madagascar.
Observe that regions now have unique ids. and values are not merged together anymore
ADDITIONAL INFORMATION
NoteBook python block
madagascar_copyin the shared block