-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Fix USA's state geojson for 'Country Map' visualization #4121
Conversation
🚢 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this change with 0.22, but it unfortunately does not fix the problem. From what I can see, the issue is that the file does not use the official ISO 3166-2 codes as the old country map did. For example, the code being used for Georgia is GA rather than US-GA. The old map format worked with US-GA, but this one does not. If my assumption is correct that all codes need the country dash prefix, then I believe the only remaining change would be to add the "US-" in front of all ISO codes in the file. For reference, please see http://www.statemaster.com/graph/ide_iso_316_cod_sor_by_nam_sta-us-codes-sorted-name-states
Yeah I have to admit I considered both options while writing the PR. I think it's much more common to have the 2-letter code in databases for US states, but it's true that |
Turns out the ISO codes were missing from the geojson file, this adds it and uses human-readable indents.
ebfa198
to
833649b
Compare
dc4fbe0
to
65be83b
Compare
* Fix USA's state geojson for 'Country Map' visualization Turns out the ISO codes were missing from the geojson file, this adds it and uses human-readable indents. * using proper ISO codes * Linting New linting rules started applying, I'm guessing a new version of pylint?
* Fix USA's state geojson for 'Country Map' visualization Turns out the ISO codes were missing from the geojson file, this adds it and uses human-readable indents. * using proper ISO codes * Linting New linting rules started applying, I'm guessing a new version of pylint?
Turns out the ISO codes were missing from the geojson file, this adds it
and uses human-readable indents.
fixes #4112