一个地方与openstreetmap的管理关系 [英] Administrative relations of a place with openstreetmap

查看:129
本文介绍了一个地方与openstreetmap的管理关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了很多关于如何使用立交桥api 的研究,尝试了很多 http://overpass-turbo.eu/ 上的内容,但我无法找到获得结果我期待着......



我想查询一下,找到一个地方只有行政关系的所有关系(地点部门,地区部门这个地方,国家)被同化为AdministrativeArea的地方



nominatim overpass_api



如果你们中的任何人有一个想法
谢谢!

解决方案

只需使用以下查询即可得到结果:



IS_IN(45.6178738,4.6703107) - > .A;
rel(pivot.a)[boundary = administrative];
出标签;



我用中心点45.6178738,4.6703107来获得这一点所包含的所有相关关系。



在立交桥上试用它: http:// overpass-turbo。 eu / s / jQS

I did a lot of research about how to use overpass-api tried a lot of things on http://overpass-turbo.eu/ but i can't find the way to get the result i'm expecting ...

I would like with a query, to find all the relations a place has but only administrative relations (department of the place, region of the place, country) everyhting that is assimilated to an "AdministrativeArea"

Tried this with both nominatim and the overpass_api

If any of you guys have an idea Thanks !

解决方案

Just use the following query to get the result:

is_in(45.6178738,4.6703107)->.a; rel(pivot.a)[boundary=administrative]; out tags;

I used the center point 45.6178738,4.6703107 to get all relevant relations this point is contained in.

Try it in overpass turbo: http://overpass-turbo.eu/s/jQS

这篇关于一个地方与openstreetmap的管理关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆