Saudi Arabia/Admin Boundaries of Regions and Governorates Import
This is an import of a datasets provided by The Ministry of Health that contains detailed and accurate administrative boundaries for both Regions and Governorates.
Goals
Currently the map contains only regions boundaries, we are expanding that with Governorates boundaries from this datasets, as well as improve the accuracy of the Regions.
This dataset contains information we as contributers cannot survey and have to rely on official government information.
Schedule
Regions: successfully uploaded on March 4th, 2021
Governorates: Plans to divide up the work starting from March 4th.
Import Data
Background
Data source site: Regions
Governorates
Data license: Open Data License
OSM attribution: https://wiki.openstreetmap.org/wiki/Contributors#Saudi_Arabia
OSM Data Files
Files will be obtained from source and will be handled through JOSM.
Obtaining Data Files
Getting GeoJSON
Using this service ArcGIS REST Service export we can get a GeoJSON formatted file. Simply use this website: https://cartong.github.io/arcgis-rest-service-export/ and set the options as follows Service Layer: * Regions: https://services6.arcgis.com/bKYAIlQgwHslVRaK/arcgis/rest/services/CasesByRegion_ViewLayer/FeatureServer/0 * Governorates: https://services6.arcgis.com/bKYAIlQgwHslVRaK/arcgis/rest/services/CasesByGovernoratesViewLayer/FeatureServer/0 * Print Format: GeoJSON * Return Geometry: Yes Then hit the search(magnify glass icon) Finally export the file as GeoJSON
Converting To OSM
Read GeoJSON I opted to use JOSM since it can read GeoJSON natively
Import Type
A one-time import using JOSM and manual adjustments.
Data Preparation
Regions
Regions have already been mapped in OSM, so we need to compare between old and new: To ease this process we can use overpass to fetch the regions boundaries from osm, query like this: [1]
[out:xml][timeout:25]; {{geocodeArea:Saudi}}->.searchArea; ( nwr["boundary"](area.searchArea); ); (._;>;); out meta;
Overall the data is somewhat accurate but fairly old, we noticed that Najran have expanded it's region to the east 400km, some borders are off between 60 km to 90 km. Our focus will be the inner boundaries. ---
Governorates
Currently no admin boundaries for Governorates (Muhafazah) exist in the map Using this table as reference We can divide the work one region a time.
Thanks to حبيشان (on osm, edits, contrib, heatmap, chngset com.) for preparing this file to be used in submitting boundaries
Data Reduction & Simplification
Duplicates (way) in boundary data will be detected and removed. Some of its metadata (i.e. tags) which may not be used widely in OSM would also be scrapped. Ways with more than 2000 nodes will be further split.
Tagging Plans
Regions
Same as existing
Making sure that it reflect the standard ae:
admin_level=4 boundary=administrative name=... source=covid19 saudi MOH open data
Relation members:
admin_centre label
Governorates
Each Governorates belong to one Region, and each region have one admin_centre governorate.
Tags for ways are unnecessary one label in the center of city
Tags on relation:
admin_level=5/6 boundary=administrative place=city name=... source=covid19 saudi MOH open data
Changeset Tags
source=covid19 saudi MOH open data
Data Merge Workflow
This import will be managed by Abdullah Abdulrhman (on osm, edits, contrib, heatmap, chngset com.) and Mouath Ibrahim (on osm, edits, contrib, heatmap, chngset com.) and حبيشان (on osm, edits, contrib, heatmap, chngset com.).
- Some cleanup on the current boundary data, for example: mapped elements that share the same ways with current boundary relation members will be split first.
- Load current related boundary relations from OSM.
- Open transformed JSON files into JOSM.
- Carefully retain relation histories during merge process. If possible, in simpler cases, way histories may be preserved.
- QA using inbuilt validation tools (splitting complex relations very carefully), before finalising the upload.
QA
KeepRight to catch slipped mistakes.
Fixes by the community
https://www.openstreetmap.org/changeset/100432743 https://www.openstreetmap.org/changeset/100433062 https://www.openstreetmap.org/changeset/100446074 https://www.openstreetmap.org/changeset/100457991 https://www.openstreetmap.org/changeset/100479697 https://www.openstreetmap.org/changeset/100481804 https://www.openstreetmap.org/changeset/100482440 https://www.openstreetmap.org/changeset/100482581
Results
Regions
Abdullah Abdulrhman successfully prepared and uploaded the data
Changesets link
Addition and modifications:
https://www.openstreetmap.org/changeset/100408604 https://www.openstreetmap.org/changeset/100405983 https://www.openstreetmap.org/changeset/100405376
QA:
https://www.openstreetmap.org/changeset/100405394 https://www.openstreetmap.org/changeset/100406202 https://www.openstreetmap.org/changeset/100406368 https://www.openstreetmap.org/changeset/100407009 https://www.openstreetmap.org/changeset/100407150 https://www.openstreetmap.org/changeset/100407248 https://www.openstreetmap.org/changeset/100407324 https://www.openstreetmap.org/changeset/100407394 https://www.openstreetmap.org/changeset/100407468 https://www.openstreetmap.org/changeset/100407468 https://www.openstreetmap.org/changeset/100407573 https://www.openstreetmap.org/changeset/100407625 https://www.openstreetmap.org/changeset/100407713 https://www.openstreetmap.org/changeset/100407777 https://www.openstreetmap.org/changeset/100407852 https://www.openstreetmap.org/changeset/100407946 https://www.openstreetmap.org/changeset/100408031 https://www.openstreetmap.org/changeset/100408118 https://www.openstreetmap.org/changeset/100408190 https://www.openstreetmap.org/changeset/100408268 https://www.openstreetmap.org/changeset/100408426 https://www.openstreetmap.org/changeset/100408486 https://www.openstreetmap.org/changeset/100408552
Governorates
Gov | Region | Link | Fixes | Reviewed By | Notes |
---|---|---|---|---|---|
Dammam | Eastern | https://www.openstreetmap.org/changeset/100438715 | |||
Khubar | https://www.openstreetmap.org/changeset/100446685 | ||||
Abqaiq | https://www.openstreetmap.org/changeset/100447932 | ||||
Ahsa | https://www.openstreetmap.org/changeset/100449106 | ||||
Udayd | https://www.openstreetmap.org/changeset/100451311 | [2] | |||
Nuayriyah | https://www.openstreetmap.org/changeset/100497028 | ||||
Qatif | https://www.openstreetmap.org/changeset/100498914 | ||||
Ras Tannurah | https://www.openstreetmap.org/changeset/100500711 | ||||
Jubayl | https://www.openstreetmap.org/changeset/100502010 | ||||
Khafji | https://www.openstreetmap.org/changeset/100503654 | ||||
Hafar Al Batin | https://www.openstreetmap.org/changeset/100504139 | ||||
Qaryah Al Ulya | https://www.openstreetmap.org/changeset/100504363 | ||||
Ash Shimasiyah | Al Qassim | https://www.openstreetmap.org/changeset/100534050 | |||
Ar Rass | |||||
Buraydah | |||||
Dariyah | |||||
Al Bukayriyah | |||||
Al Badai | |||||
An Nabhaniyah | |||||
Uqlat As Suqur | |||||
Unayzah | |||||
Riyadh Al Khabra | |||||
Al Asyah | |||||
Al Midhnab | |||||
Uyun Al Jiwa | |||||
Al Ghazalah | Ḥaʼil | https://www.openstreetmap.org/changeset/100600257 | |||
Ash Shamli | |||||
Simira | |||||
Al Hait | |||||
As Sulaymi | |||||
Ash Shinan | |||||
Hail | |||||
Baqa | |||||
Mawqaq | |||||
Tubarjal | Northern Borders | https://www.openstreetmap.org/changeset/100608294 | |||
Dawamat Al Jandal | |||||
Sakaka | |||||
Al Qurayyat | |||||
Al Uwayqilah | Al-Jawf | ||||
Turayf | |||||
Arar | |||||
Rafha | |||||
Haqil | Tabuk | https://www.openstreetmap.org/changeset/100707549 | |||
Tabuk | |||||
Al Bad | |||||
Duba | |||||
Al Wajh | |||||
Tayma | |||||
Umluj | |||||
Afif | Riyadh | https://www.openstreetmap.org/changeset/100753356 | |||
Rumah | |||||
Ar Rayn | |||||
Ad Duwadimi | |||||
Riyadh | |||||
Al Hariq | |||||
Shaqra | |||||
Al Kharj | |||||
Al Majmaah | |||||
Az Zulfi | |||||
Al Aflaj | |||||
Al Quwayiyah | |||||
Huraymila | |||||
Al Muzahimiyah | |||||
Hawtat Bani Tamim | |||||
As Sulayyil | |||||
Al Ghat | |||||
Duruma | |||||
Ad Dilam | |||||
Ad Diriyah | |||||
Thadiq | |||||
Wadi Ad Dawasir | |||||
Marat | |||||
Hubuna | Najran | https://www.openstreetmap.org/changeset/100773817 | |||
Badr Al Janub | |||||
Sharurah | |||||
Yadamah | |||||
Najran | |||||
Thar | |||||
Khubash | |||||
Badr | Al-Medina | https://www.openstreetmap.org/changeset/100815252 | |||
Wadi Al Fara | |||||
Al Is | |||||
Al Ula | |||||
Khaybar | |||||
Al Hinakiyah | |||||
Yanbu | |||||
Al Mahd | |||||
Al Madinah Al Munawwarah | |||||
Adam | Mecca | https://www.openstreetmap.org/changeset/100826879 | |||
Al Ardiyat | |||||
Maysan | |||||
Bahrah | |||||
Al Khurmah | |||||
Ranyah | |||||
Al Lith | |||||
Rabigh | |||||
Al Jumum | |||||
Turubah | |||||
Al Muwayh | |||||
Khulays | |||||
Jiddah | |||||
Al Qunfudhah | |||||
Makkah Al Mukarramah | |||||
Al Kamil | |||||
Al Taif | |||||
Farat Ghamid Az Zinad | Al Bahah | https://www.openstreetmap.org/changeset/100831344 | |||
Al Bahah | |||||
Al Mandaq | |||||
Bani Hasan | |||||
Al Qara | |||||
Al Aqiq | |||||
Qilwah | |||||
Al Mukhwah | |||||
Al Hajrah | |||||
Biljurashi | |||||
Baysh | Jazan | https://www.openstreetmap.org/changeset/100839018 | |||
Abu Arish | |||||
Al Aridah | |||||
Ad Dair | |||||
Harub | |||||
Jazan | |||||
At Tuwal | |||||
Ar Rayth | |||||
Al Aydabi | |||||
Ahad Al Masarihah | |||||
Sabya | |||||
Ad Darb | |||||
Farasan | |||||
Samtah | |||||
Fayfa | |||||
Damad | |||||
Al Harth | |||||
Sarat Abidah | Asir | https://www.openstreetmap.org/changeset/100922728 | |||
An Namas | |||||
Al Majardah | |||||
Bariq | |||||
Balqarn | |||||
Al Harjah | |||||
Al Birk | |||||
Muhayil | |||||
Bishah | |||||
Tarib | |||||
Abha | |||||
Tathlith | |||||
Ahad Rufaydah | |||||
Zahran Al Janub | |||||
Khamis Mushayt | |||||
Tanumah | |||||
Rijal Al Ma |
See also
- Discussion on the Telegram Channel
- The email to the Imports mailing list was sent on Feb 27, 2021 and can be found in the archives of the mailing list.
- Repo for raw data and issue tracking