Skip to content
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

wrong ADM codes for StateProvince in some countries? #7

Open
abubelinha opened this issue Dec 2, 2023 · 1 comment
Open

wrong ADM codes for StateProvince in some countries? #7

abubelinha opened this issue Dec 2, 2023 · 1 comment

Comments

@abubelinha
Copy link

abubelinha commented Dec 2, 2023

Not sure if this affects other countries, but when producing maps for Spain, I am not being able to display provinces, but autonomous communities.

Which is the source of the State/Province & Code values displayed in the Regions table?
https://www.simplemappr.net/#map-regions=&tabs=5

At least for Spain, the Codes displayed in that table do not correspond to the State/Province name shown in the same row.
The names correspond to a lower ADM level than the codes.

i.e. Sevilla is one of the 8 provinces in Andalucía (which is an autonomous community, corresponding to the AN code in your table), together with Huelva, Cádiz, Córdoba, Málaga, Granada, Jaén and Almería (SimpleMapper Regions table repeats the AN code for all of them, which is wrong: the code corresponds to Andalucía).

So AN does not correspond to Sevilla, Málaga ... or any of the names displayed in the table (because Andalucía is not displayed there).
The table should use a different code for each Spanish State/Province name (if you want to use the ISO codes for provinces, I guess for Sevilla it should be either ES-SE or simply SE).

Thanks
@abubelinha

@dshorthouse
Copy link
Owner

Apologies for the delay. I had subscribed to issues in my own repo! The StateProvince data come from an extraction (and use) from the shapefiles produced at https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/ and it looks like there has not been an update since June of 2022. I suggest an issue on their GitHub repo and when/if SimpleMappr updates the shapefiles, they can be reused https://github.com/nvkelso/natural-earth-vector/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants