You are not logged in.
- Topics: Active | Unanswered
Announcement
*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2015-07-04 12:14:18
- caka1011
- Member
- Registered: 2015-05-29
- Posts: 20
Duplikate (ID's) im Ergebnis der Overpass-Abfrage
Hallo,
ich habe folgende Overpass-Abfrage ausgeführt:
node(around:300.0,48.97247132,8.46175337)
["railway" = "tram_stop"];
out;
node(around:300.0,48.97247132,8.46175337)
["highway" = "bus_stop"];
out;
node(around:300.0,48.97247132,8.46175337)
["public_transport" = "platform"];
out;
node(around:300.0,48.97247132,8.46175337)
["railway" = "stop"];
out;
node(around:300.0,48.97247132,8.46175337)
["public_transport" = "stop_position"];
out;
node(around:300.0,48.97247132,8.46175337)
["railway" = "station"];
out;Im Ergebnis erhalte ich Nodes, die zum Teil die gleichen Node-Id's haben. Gibt es eine Möglichkeit, wie ich solche Duplikate aus dem Ergebnis entferne?
Vielen Dank!
Mit freundlichen Grüßen
Offline
#2 2015-07-04 13:16:59
- mmd
- Member
- Registered: 2010-11-06
- Posts: 2,150
Re: Duplikate (ID's) im Ergebnis der Overpass-Abfrage
caka1011 wrote:
Gibt es eine Möglichkeit, wie ich solche Duplikate aus dem Ergebnis entferne?
Ja, mit einem Union-Statement und einem einzigen out; am Ende.
Gruß,
mmd
Offline
#3 2015-07-04 22:00:40
- caka1011
- Member
- Registered: 2015-05-29
- Posts: 20
Re: Duplikate (ID's) im Ergebnis der Overpass-Abfrage
Vielen Dank mmd!
Das hat mir sehr weitergeholfen ![]()
Offline