From c2e453b9230b6992950cc8d1cce4b0f3751bde9c Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Wed, 17 Jan 2018 16:43:09 +0100 Subject: [PATCH] Taiwan: distinguish between Hsinchu City and Hsinchu County --- geocoder/admin1/patches/20180117_hsinchu_synonyms.sql | 4 ++++ geocoder/geocoder_download_patches.sh | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 geocoder/admin1/patches/20180117_hsinchu_synonyms.sql diff --git a/geocoder/admin1/patches/20180117_hsinchu_synonyms.sql b/geocoder/admin1/patches/20180117_hsinchu_synonyms.sql new file mode 100644 index 0000000..f5f5148 --- /dev/null +++ b/geocoder/admin1/patches/20180117_hsinchu_synonyms.sql @@ -0,0 +1,4 @@ +UPDATE global_province_polygons + SET synonyms = array_append(array_remove(synonyms, 'hsinchu'), 'hsinchu county'), + "name" = 'Hsinchu County' + WHERE adm1_code = 'TWN-1162'; diff --git a/geocoder/geocoder_download_patches.sh b/geocoder/geocoder_download_patches.sh index 9e8ad88..dce4e1a 100644 --- a/geocoder/geocoder_download_patches.sh +++ b/geocoder/geocoder_download_patches.sh @@ -6,7 +6,8 @@ VERSION=0.0.1 PATCHES_LIST="20160203_countries_bh_isocode.sql 20160622_countries_synonym_congo.sql -20171004_merge_corsica_and_france.sql" +20171004_merge_corsica_and_france.sql +20180117_hsinchu_synonyms.sql" mkdir -p $TARGET_DIR_PATCHES