[boundaries] removing Ankara metropolitan districts (they're in many other cities as well, would be better to change on the OSM level if needed)
This commit is contained in:
@@ -11,16 +11,6 @@
|
|||||||
# Istanbul, coterminous with the city
|
# Istanbul, coterminous with the city
|
||||||
"223474": "city"
|
"223474": "city"
|
||||||
|
|
||||||
# Ankara metropolitan districts
|
|
||||||
"1812321": "city_district" # Çankaya
|
|
||||||
"1812354": "city_district" # Etimesgut
|
|
||||||
"1811046": "city_district" # Sincan
|
|
||||||
"1812356": "city_district" # Yenimahalle
|
|
||||||
"1811393": "city_district" # Keçiören
|
|
||||||
"1811454": "city_district" # Pursaklar
|
|
||||||
"1812317": "city_district" # Altındağ
|
|
||||||
"1812319": "city_district" # Mamak
|
|
||||||
|
|
||||||
contained_by:
|
contained_by:
|
||||||
relation:
|
relation:
|
||||||
# Istanbul
|
# Istanbul
|
||||||
@@ -28,51 +18,8 @@
|
|||||||
admin_level:
|
admin_level:
|
||||||
"6": "city_district"
|
"6": "city_district"
|
||||||
"8": "suburb"
|
"8": "suburb"
|
||||||
|
|
||||||
# Ankara
|
# Ankara
|
||||||
"223422":
|
"223422":
|
||||||
admin_level:
|
admin_level:
|
||||||
"8": "suburb"
|
"8": "suburb"
|
||||||
|
|
||||||
# Change Ankara (province) to the city in metropolitan districts
|
|
||||||
|
|
||||||
# Çankaya
|
|
||||||
"1812321":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Etimesgut
|
|
||||||
"1812354":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Sincan
|
|
||||||
"1811046":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Yenimahalle
|
|
||||||
"1812356":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Keçiören
|
|
||||||
"1811393":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Pursaklar
|
|
||||||
"1811454":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Altındağ
|
|
||||||
"1812317":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
# Mamak
|
|
||||||
"1812319":
|
|
||||||
admin_level:
|
|
||||||
"4": "city"
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -429,3 +429,42 @@
|
|||||||
and place_type = "County"
|
and place_type = "County"
|
||||||
and parent_id in (select id from places where country_code = "NO" and place_type = "State");
|
and parent_id in (select id from places where country_code = "NO" and place_type = "State");
|
||||||
|
|
||||||
|
-- Turkey
|
||||||
|
-- Istanbul (city)
|
||||||
|
update places
|
||||||
|
set parent_id = 2347289
|
||||||
|
where id = 2344116;
|
||||||
|
|
||||||
|
update admins
|
||||||
|
set county_id = 0
|
||||||
|
where id = 2344116;
|
||||||
|
|
||||||
|
-- districts of Istanbul
|
||||||
|
update places
|
||||||
|
set parent_id = 2344116, -- Istanbul (city)
|
||||||
|
place_type = "LocalAdmin"
|
||||||
|
where parent_id = 2347289 -- Istanbul (province)
|
||||||
|
and place_type = "County";
|
||||||
|
|
||||||
|
-- Ankara
|
||||||
|
update places
|
||||||
|
set parent_id = 2347263
|
||||||
|
where id = 2343732;
|
||||||
|
|
||||||
|
update admins
|
||||||
|
set county_id = 0
|
||||||
|
where id = 2343732;
|
||||||
|
|
||||||
|
-- metropolitan districts of Ankara
|
||||||
|
update places
|
||||||
|
set parent_id = 2343732, -- Ankara
|
||||||
|
place_type = "LocalAdmin"
|
||||||
|
where id in (
|
||||||
|
29390074, -- Altındağ
|
||||||
|
29390201, -- Çankaya
|
||||||
|
29390321, -- Etimesgut
|
||||||
|
29390485, -- Keçiören
|
||||||
|
29390552, -- Mamak
|
||||||
|
29390757, -- Sincan
|
||||||
|
29390874 -- Yenimahalle
|
||||||
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user