-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Samuel:
Here you have an overpass query to get all boundary relations for all states, LGA's and wards of Nigeria, with the admin_centre's and label of each relation when available: http://overpass-turbo.eu/s/cxp If you want Nigeria country boundary relation too, just change "4|6|8" by "2|4|6|8". In case you want for example only states and LGA's, just do "4|6", and so on. In case you want only the boundaries for a certain state, you can use this query (this example is for Kano state): http://overpass-turbo.eu/s/cxt In case you don't want the admin_centre's nor labels nodes of any relation, you have to run a different query. This one is for Kano: http://overpass-turbo.eu/s/cxs Whenever possible, I advise to use area codes instead names. For example, Niger is the name of a state in Central Nigeria, but it's also the name of Nigerias north neighbour country: Niger. Getting the area code is simple: go to osm.org, search for the area you are interested in (example Niger), get the relation id we want (in our case, let's say we want Nigeria's Niger state relation id, so we click in "State Boundary Niger, Nigeria" link, not in "country, Niger"), and then we copy it's id (in our example 3718384), and we add 3600000000 + 3718384 = 3603718384 to get the Niger state area code for overpass queries: (area:3603718384) To avoid a query to overload your web browser, instead of hitting "run" button, click in "Export" button instead. There, go to "Query" and then click on "compact" in the "convert to (compact) OverpassQL" link. That will open a new window with a compact OverpassQL link. Click on it and it will make the query and download directly in your file system the result of the query. For example, for the last example query (Kano state boundaries without admin_centre's nor labels), the link is like this one: http://overpass-api.de/api/interpreter?data=%5Btimeout%3A250%5D%3B%28relation%5B%22boundary%22%3D%22administrative%22%5D%5B%22admin%5Flevel%22%7E%224%7C6%7C8%22%5D%28area%3A3603710302%29%3B%29%2D%3E%2ErelBoundary%3B%28way%28r%2ErelBoundary%29%3B%29%2D%3E%2EwaysBoundary%3B%28node%28w%2EwaysBoundary%29%3B%29%2D%3E%2EnodesBoundary%3B%28%2ErelBoundary%3B%2EwaysBoundary%3B%2EnodesBoundary%3B%29%3Bout%20meta%3B%0A If you need any more sofisticated query, just let us know: Cheers, Rafael. On 08/11/15 12:00, Samuel Aiyeoribe wrote: > Hello HOTties, > > Please does anyone know of a service for extracting/downloading > OSM Admin Boundary that one can fork and host myself and also > available on github. > > Looking forward to your reply. > > Cheers > > Samuel > > > _______________________________________________ HOT mailing list > [email protected] https://lists.openstreetmap.org/listinfo/hot > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQIcBAEBAgAGBQJWP7DwAAoJEB3niTly2pPQP+sP/2WFMgo990RaSG6ife1M10a/ TyNPjyUBRTcx1S3dU6bmp30kpyqq2GwsQckKbvJ4yKPhVwWCtouERtpAQyuSfoOy GUwyjVuCbwZLaAlszUi0xKomkFpHbBA7UDYLbIkzh7Ppi3wM6qQEWgOLw5hUHevS QreoACoMPoShAH+K+I1g+tQpfy2T0vF7KdQTL14UnN1YrKNe4YWlwklj7K/Zr9jF +Tpi3H8nKQE3Be7oHa+R5gYC7uKzae6dgsy2QrV0RZ257yYXCKbkPaDL8vRxvIVb HsAZWiD+qMbwaXVQ1/uLucu8YuFZdIdn8N6Jtt/0NgMBYTiVvexc72lrS1fVtpkr IvzuLohJueL4a0aNVNyxnRn31jJO32tAqESej2SWDRVJ7k8NQl+6l72Y8Y2foHpy 6ZyI+dV1v0ktqHCKiAndbS7B9a56NezkOztoChYR5nJNmyCOZApD50NYJQCaapmp Bh+sqPiu1RpWrTPwkRu5UCtPHfk3mCT+lu04+82xNZRcepDPJBuuUf5n4dVvAtjr yilxbAZjkopOV/a6fIQ8jdJw4VhG2V79fUky37HvHvvEeWbmQCPwr7fwWo0h4oqj X2SZgs4yjSfQjM/5Eztn7Fl7sewxwdRDHX8nW6H87TCGE+x2Vo9foQs3UQGTxVjz TCA06fdas1+Ab7kSOYSa =PcRn -----END PGP SIGNATURE----- _______________________________________________ HOT mailing list [email protected] https://lists.openstreetmap.org/listinfo/hot
