<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>Mathieu,<br><br>Voici une façon simple utilisant Nominatim et JOSM.<br><br>1. Recherche Nominatim<br>http://nominatim.openstreetmap.org/<br>tu indiques Paris, France  (pour Tokyo, Japon, il ne semble pas y avoir de relation de limite administrative).<br></div><div>tu sélectionne le lien avec (admin) (details)<br>tu clique sur (details) et tu récupère le no. de relation contenant les limites administratives. Pour Paris, id=<span class="yiv1952370437osm"><a rel="nofollow" target="_blank" href="http://www.openstreetmap.org/browse/relation/71525">71525</a></span></div><div> <br>Tu récupère ensuite dans JOSM.<br>Fichier / Télécharger un objet. Tu sélectionne relation et indique le no. de relation.<br><br>Tu peux répéter l'opération pour d'autre lieux.<br><br>Tu pourras ensuite sauvegarder le fichier
 OSM.<br></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span style="font-style:italic;color:rgb(0, 0, 191);font-weight:bold;"><br></span></div><div><span></span></div><div> </div><div><span style="font-style:italic;color:rgb(0, 0, 191);font-weight:bold;">Pierre <br></span><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De :</span></b> Mathieu Rajerison <mathieu.rajerison@gmail.com><br> <b><span style="font-weight: bold;">À :</span></b> Discussions sur OSM en français
 <talk-fr@openstreetmap.org> <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi 5 octobre 2012 7h11<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: [OSM-talk-fr] Récupérer les contours de tous les pays - API OpenstreetMap<br> </font> </div> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1323487353">Ok, je vous remercie pour toutes ces réponses!<br><br>J'ai essayé sur Tokyo mais je n'obtiens rien de probant..Faut-il que j'écrive Tokyo en japonais? ;) Comment être sûr de bien avoir orthographié le nom de la ville?<br>

<br><a rel="nofollow" target="_blank" href="http://www.overpass-api.de/api/xapi?relation[name=Tokyo]">http://www.overpass-api.de/api/xapi?*[name=Tokyo]</a><br>me donne des nodes et des ways mais aucune way ne concerne une limite administrative..<br>

<br><div class="yiv1323487353gmail_quote">Le 5 octobre 2012 12:40, Pieren <span dir="ltr"><<a rel="nofollow" ymailto="mailto:pieren3@gmail.com" target="_blank" href="mailto:pieren3@gmail.com">pieren3@gmail.com</a>></span> a écrit :<br><blockquote class="yiv1323487353gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">

2012/10/5 sly (sylvain letuffe) <<a rel="nofollow" ymailto="mailto:liste@letuffe.org" target="_blank" href="mailto:liste@letuffe.org">liste@letuffe.org</a>>:<br>
<div><br>
> Sinon, comme le propose Marc à coté, avec OverpassAPI et son langage plus<br>
> complet on doit pouvoir faire ça en un coup<br>
<br>
</div>A noter que toutes ces opérations ne sont utiles que si tu veux<br>
automatiser. Et aussi que le admin_level=8 n'est pas universel. Si ça<br>
reste, comme il dit, pour "quelques grandes villes mondiales", on peut<br>
aussi bien récupérer les id des relations directement avec un éditeur<br>
avant de récupérer les données avec le<br>
.../api/0.6/relation/relation_id/full<br>
<span><font color="#888888"><br>
Pieren<br>
</font></span><div><div><br>
_______________________________________________<br>
Talk-fr mailing list<br>
<a rel="nofollow" ymailto="mailto:Talk-fr@openstreetmap.org" target="_blank" href="mailto:Talk-fr@openstreetmap.org">Talk-fr@openstreetmap.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.openstreetmap.org/listinfo/talk-fr">http://lists.openstreetmap.org/listinfo/talk-fr</a><br>
</div></div></blockquote></div><br>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>Talk-fr mailing list<br><a ymailto="mailto:Talk-fr@openstreetmap.org" href="mailto:Talk-fr@openstreetmap.org">Talk-fr@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/listinfo/talk-fr" target="_blank">http://lists.openstreetmap.org/listinfo/talk-fr</a><br><br><br> </div> </div> </blockquote></div>   </div></body></html>