-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Miscellaneous geo fixes #3856
Miscellaneous geo fixes #3856
Conversation
This is important as the Natural Earth files nclude state/provinces from USA, Canada, Australia and Brazil which have some overlay in their two-letter ids. For example, 'WA' is used for both Washington state and Western Australia. As subunits from USA and Canada never conflict, filtering out features south of the equator suffices to fix #3779 A better fix would have us add a "governing unit" properties in subunit features in the `sane-topojson` package to avoid conflicts.
@etpinard Thanks for the fixes. |
Thanks for the review @archmoj I'll leave this PR open for now. I'll try to finish up etpinard/sane-topojson#12 and make the fix in 68bd47b less hacky before 1.48.0 is ready. |
... to improve fix for #3779
@archmoj I found time to ✅ etpinard/sane-topojson#12 This PR is |
@etpinard It would nice if sane-topojson could generate |
It could be nice. Feel free to open a new https://github.com/etpinard/sane-topojson/issues But comparing MB-large json files isn't my thing, I think comparing diffs like in etpinard/sane-topojson@8624ec4 is much more valuable. |
Looking good. |
Three geo fixes.
The fix in 68bd47b is the most interesting where I spent most of the last two days trying to bring back my
sane-topojson
package back to life (a few things have changed in the Natural Earth dataset and thetopojson
utility since 2016 😝 ). I settled for a hacky but simple patch for now ... and untilsane-topojson
is back on solid grounds (cc etpinard/sane-topojson#12)@plotly/plotly_js reviewing this PR commit-by-commit should be straight-forward enough, but please let me know if you'd like a few codepen examples.