I have admin_level=8 for South Oxfordshire District. I wish to obtain admin_level=10 civil parishes within that boundary. asked 23 Oct '17, 13:01 silver mapper |
I think this should do it: http://overpass-turbo.eu/s/sy3 For queries like Here removing "district" does the trick. Overpass API also has some ways of retrieving an area created from a specific OpenStreetMap feature: http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_area_.28area.29 So answered 23 Oct '17, 14:13 maxerickson Max I thank you for your prompt and informative reply. I realised my post should have read "admin_level"=8 and name="South Oxfordshire", and wanted to edit it but your reply beat me to it. Running your suggestion gives me a result but there are straight lines connecting certain points in addition to the boundaries themselves. The appearance is a mixture of white and yellow areas, suggesting some sort of overlap. This is the same result as I have achieved, myself, which is why I asked the question. Copying the result as a .kml file into uMap replicates all lines. Opening an exported and saved .kml file into JOSM displays the boundaries alone, however. Importing that saved .kml file into uMap gives the same result as copying it. Looking into it further, my impression is this: each admin level 10 boundary is formed of a number of sections, as we contributors choose. The straight lines appear to run between the ends of such sections, when I view and select sections in JOSM.
(23 Oct '17, 16:33)
silver mapper
I expect the tools you are using expect the relations to be in a certain order, which isn't something OSM has treated as important. You can use http://overpass-turbo.eu/s/syd to download the OSM data directly into JOSM and see that it is able to process the areas reasonably. The relation editor window also has a feature where it visualizes how the ways are connected. If you are looking for a KML file, the easiest solution is probably
(23 Oct '17, 16:58)
maxerickson
Max Between times, I thought the result was because the administrative boundaries are not closed ways. I thank you for your further information and help, and http://overpass-turbo.eu/s/sye does give me what I seek, indeed. This answers my post.
(23 Oct '17, 18:24)
silver mapper
Hi there, I want to get the city, district and Xian boundaries on that website too. I'm allergic to code, tried change number 10 to 5 in your link but not work. I want to draw the city, district, and County(Xian in China) level boundaries of those cities: Shanghai, Suzhou, Wuxi, Changzhou, Huzhou, Jiaxing, Hangzhou, Shaoxing and Ningbo. Please help. What should I code to achieve that, please
(27 Apr, 03:53)
CliffHU
1
@CliffHU, please ask a new question. Do not use comments to ask new questions.
(27 Apr, 04:36)
escada
OK, please check the QS here: https://help.openstreetmap.org/questions/74396/overpass-draw-multiple-cities-with-district-boundaries-to-calculate-population-in-driving-range
(27 Apr, 07:05)
CliffHU
showing 5 of 6
show 1 more comments
|