特定の緯度経度から建物の形状を見つけようとしています。したがって、私の考えは、座標クエリを使用して、緯度、経度が含まれるすべてのエリアを取得することでした。http://overpass.osm.rambler.ru/cgi/interpreterを使用して、すべてのエリアを取得し、フィルタリングして建物であるノードのみを取得できます。
たとえば、次のようなエリアがあります。
{ id: '2542062474',
'addr:city': 'Nice',
amenity: 'place_of_worship',
building: 'yes',
denomination: 'protestant',
name: 'Église Protestante Unie de Nice Saint-Esprit',
religion: 'christian',
source: 'cadastre-dgi-fr source : Direction Générale des Impôts - Cadastre. Mise à jour : 2011' }
この領域のジオメトリを取得するのは簡単だと思いましたが、それを行う方法が見つかりませんか? 私は何かが欠けているに違いない。
http://overpass-turbo.euで、次のスクリプトを入力します。
[out:json][timeout:25];
// gather results
(
// query part for: “area”
area(2542062474);
);
// print results
out body;
>;
out skel qt;
ただし、結果にはジオメトリが含まれません。エリアのジオメトリを取得するにはどうすればよいですか?
ありがとう !
ここに私のスクリプトがあります: https://gist.github.com/ptbrowne/60d7338502de1d16ac46