<div dir="ltr">Samuel,<div>There is this service I discovered a few days ago. </div><div><br></div><div><a href="https://osm.wno-edv-service.de/boundaries/">https://osm.wno-edv-service.de/boundaries/</a><br></div><div><br></div><div>Can't speak to its quality yet though.</div><div><br></div><div>Dale</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 8, 2015 at 3:30 PM, Rafael Avila Coya <span dir="ltr"><<a href="mailto:ravilacoya@gmail.com" target="_blank">ravilacoya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi, Samuel:<br>
<br>
Here you have an overpass query to get all boundary relations for all<br>
states, LGA's and wards of Nigeria, with the admin_centre's and label<br>
of each relation when available: <a href="http://overpass-turbo.eu/s/cxp" rel="noreferrer" target="_blank">http://overpass-turbo.eu/s/cxp</a><br>
<br>
If you want Nigeria country boundary relation too, just change "4|6|8"<br>
by "2|4|6|8". In case you want for example only states and LGA's, just<br>
do "4|6", and so on.<br>
<br>
In case you want only the boundaries for a certain state, you can use<br>
this query (this example is for Kano state):<br>
<a href="http://overpass-turbo.eu/s/cxt" rel="noreferrer" target="_blank">http://overpass-turbo.eu/s/cxt</a><br>
<br>
In case you don't want the admin_centre's nor labels nodes of any<br>
relation, you have to run a different query. This one is for Kano:<br>
<a href="http://overpass-turbo.eu/s/cxs" rel="noreferrer" target="_blank">http://overpass-turbo.eu/s/cxs</a><br>
<br>
Whenever possible, I advise to use area codes instead names. For<br>
example, Niger is the name of a state in Central Nigeria, but it's<br>
also the name of Nigerias north neighbour country: Niger.<br>
<br>
Getting the area code is simple: go to <a href="http://osm.org" rel="noreferrer" target="_blank">osm.org</a>, search for the area<br>
you are interested in (example Niger), get the relation id we want (in<br>
our case, let's say we want Nigeria's Niger state relation id, so we<br>
click in "State Boundary Niger, Nigeria" link, not in "country,<br>
Niger"), and then we copy it's id (in our example 3718384), and we add<br>
3600000000 + 3718384 = <a href="tel:3603718384" value="+13603718384">3603718384</a> to get the Niger state area code for<br>
overpass queries: (area:<a href="tel:3603718384" value="+13603718384">3603718384</a>)<br>
<br>
To avoid a query to overload your web browser, instead of hitting<br>
"run" button, click in "Export" button instead. There, go to "Query"<br>
and then click on "compact" in the "convert to (compact) OverpassQL"<br>
link. That will open a new window with a compact OverpassQL link.<br>
Click on it and it will make the query and download directly in your<br>
file system the result of the query. For example, for the last example<br>
query (Kano state boundaries without admin_centre's nor labels), the<br>
link is like this one:<br>
<a href="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" rel="noreferrer" target="_blank">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</a><br>
<br>
If you need any more sofisticated query, just let us know:<br>
<br>
Cheers,<br>
<br>
Rafael.<br>
<div><div class="h5"><br>
On 08/11/15 12:00, Samuel Aiyeoribe wrote:<br>
> Hello HOTties,<br>
><br>
> Please does anyone know of a service for extracting/downloading<br>
> OSM Admin Boundary that one can fork and host myself and also<br>
> available on github.<br>
><br>
> Looking forward to your reply.<br>
><br>
> Cheers<br>
><br>
> Samuel<br>
><br>
><br>
</div></div><span class="">> _______________________________________________ HOT mailing list<br>
> <a href="mailto:HOT@openstreetmap.org">HOT@openstreetmap.org</a> <a href="https://lists.openstreetmap.org/listinfo/hot" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
><br>
</span>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with undefined - <a href="http://www.enigmail.net/" rel="noreferrer" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQIcBAEBAgAGBQJWP7DwAAoJEB3niTly2pPQP+sP/2WFMgo990RaSG6ife1M10a/<br>
TyNPjyUBRTcx1S3dU6bmp30kpyqq2GwsQckKbvJ4yKPhVwWCtouERtpAQyuSfoOy<br>
GUwyjVuCbwZLaAlszUi0xKomkFpHbBA7UDYLbIkzh7Ppi3wM6qQEWgOLw5hUHevS<br>
QreoACoMPoShAH+K+I1g+tQpfy2T0vF7KdQTL14UnN1YrKNe4YWlwklj7K/Zr9jF<br>
+Tpi3H8nKQE3Be7oHa+R5gYC7uKzae6dgsy2QrV0RZ257yYXCKbkPaDL8vRxvIVb<br>
HsAZWiD+qMbwaXVQ1/uLucu8YuFZdIdn8N6Jtt/0NgMBYTiVvexc72lrS1fVtpkr<br>
IvzuLohJueL4a0aNVNyxnRn31jJO32tAqESej2SWDRVJ7k8NQl+6l72Y8Y2foHpy<br>
6ZyI+dV1v0ktqHCKiAndbS7B9a56NezkOztoChYR5nJNmyCOZApD50NYJQCaapmp<br>
Bh+sqPiu1RpWrTPwkRu5UCtPHfk3mCT+lu04+82xNZRcepDPJBuuUf5n4dVvAtjr<br>
yilxbAZjkopOV/a6fIQ8jdJw4VhG2V79fUky37HvHvvEeWbmQCPwr7fwWo0h4oqj<br>
X2SZgs4yjSfQjM/5Eztn7Fl7sewxwdRDHX8nW6H87TCGE+x2Vo9foQs3UQGTxVjz<br>
TCA06fdas1+Ab7kSOYSa<br>
=PcRn<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
HOT mailing list<br>
<a href="mailto:HOT@openstreetmap.org">HOT@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/hot" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>sent from my mobile device</div><div><br></div><div>Dale Kunce</div><div><a href="http://normalhabit.com" target="_blank">http://normalhabit.com</a></div><div><br></div></div>
</div>