-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
other(data): Country map viz: geoboundary downloader + more maps #18778
other(data): Country map viz: geoboundary downloader + more maps #18778
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18778 +/- ##
=======================================
Coverage 66.32% 66.32%
=======================================
Files 1620 1620
Lines 63087 63091 +4
Branches 6372 6372
=======================================
+ Hits 41840 41844 +4
- Misses 19590 19591 +1
+ Partials 1657 1656 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks so much for this improvement @Yann-J ! I'll check some countries that I'm familiar with and see what the quality is vs the current source. I know the current Finland map has a few errors and in some parts is very lacking in detail to the point of being unrecognizable vs a real map, so this could potentially be a great improvement. Also tagging @ktmud for a review as he wrote the initial notebook. |
Thanks, and kudos to @ktmud as well on the original notebook... the new one is of course very heavily inspired from it, and I'm not python expert myself (and a total geopandas noob), so any feedback appreciated. There are maybe 2 areas I'd draw some attention to:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Hi @Yann-J yes let me put this on my list of PRs that need proper review (this requires setting aside some dedicated time to do comprehensive review/testing) |
Sorry that I missed this. I'll try to find some time to review this this week as well. |
The new geo data source is a very nice addition. @Yann-J can you also add a screenshot of how the attribution looks like in a dashboard when the chart is small? Looking at the size of the new files, I'm wondering whether it is now time to think about a long-term maintenance mode for geo-boundaries in Superset. While these new maps are relevant to your organization, it may never be used by 90% of other Superset users. We had a section in Superset docs specifically for users who want to add their own maps so that the size of Superset pip package does not bloat up. A potential solution is to publish these maps in a separate GitHub repo and add a superset command to download them to |
Indeed, I agree it may not be sustainable to host these large files in the core repo, especially since most shapes will likely not be relevant to most people, and some mechanism to host and load them externally might be best... Rather than a command, maybe a configuration in I'm not sure I can confidently suggest a proper solution for that myself, as I'm not really familiar enough with Superset's core architecture... |
While contributing some new maps to the legacy country map visualization in #18745, I realized a few limitations, that this PR intends to address, i.e.:
SUMMARY
Technical / design choices and caveats:
attribution
property at the top level of theFeatureCollection
.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Sample map for Kenya Counties (notice the new attribution comment at the bottom):
Snapshot of all the added geojson maps:
TESTING INSTRUCTIONS
Set up a data source with county/province-level data, including their ISO 3166-2 code, for instance uploading this sample random CSV:
Create a new Country Map chart with this dataset (in this example, for the 'Ethiopia Regions' country name).
ADDITIONAL INFORMATION