-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Incorrect Vietnam province name in Country map #30607
Comments
Hey @tienhung2812, I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! To correct the incorrect Vietnam province names in the country map chart, you need to update the
You can automate this process using a Python script with GeoPandas: import geopandas as gpd
# Load your GeoJSON file
vietnam = gpd.read_file('path_to_your_geojson_file')
# Function to replace names
def replace_name(gdf, old_name, new_name):
gdf.loc[gdf['NAME_1'] == old_name, 'NAME_1'] = new_name
# Replace incorrect names
replace_name(vietnam, 'Đông Nam Bộ', 'Đồng Nai')
replace_name(vietnam, 'Đông Bắc', 'Bắc Kạn')
replace_name(vietnam, 'Đồng Bằng Sông Hồng', 'Hưng Yên')
# Save the updated GeoJSON
vietnam.to_file('path_to_updated_geojson_file', driver='GeoJSON') This script will help ensure that all province names are correctly updated in your GeoJSON file [1][2]. |
Screenshot
Description
On Vietnam country map chart, there are a list of incorrect mapping ISO-code with the name
Source: https://en.wikipedia.org/wiki/ISO_3166-2:VN
Design input
The text was updated successfully, but these errors were encountered: