Last active
October 4, 2023 01:27
-
-
Save ewheeler/e8c24b637eca0d46691c to your computer and use it in GitHub Desktop.
Overpass-Turbo query for viewing administrative boundaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is an example Overpass query to view administrative boundaries. | |
1. Visit the OpenStreetMaps wiki (http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative) and see which levels are present for your country. If admin_level = N/A, that level is missing. | |
2. Go to http://overpass-turbo.eu and centre the map on the country of interest. | |
3. Delete the text on the left side of the overpass-turbo page and replace with the contents of this file | |
4. Edit the admin_level to the level you want to check - in the example above, the "admin_level" = "8". Press 'Run' to highlight and outline all boundaries for that level. | |
If you run a query for an admin_level that is N/A, you will receive the following message: | |
This map intentionally left blank. (received empty dataset) | |
Try it out by pressing the Run button above! | |
You can find more examples with the Load tool. | |
*/ | |
( | |
relation | |
["boundary"="administrative"] | |
["admin_level"="4"] | |
({{bbox}}) /* this is auto-completed with the | |
current map view coordinates. */ | |
); | |
/*added by auto repair*/ | |
(._;>;); | |
/*end of auto repair*/ | |
out; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment