Open TheFGFSEagle opened 2 years ago
If I remove includeCenter=True
it works.
Okay, played around a bit with Overpass-Turbo and this module, and the problem is that with includeCenter=True
, out body;
becomes ´out center; out body;whereas it should only be
out center;´ then. To bypass this issue, one can use out="center"
instead.
If the data is returned twice here, I would assume that it is already returned twice by Overpass. I recommend to run the query directly in Overpass and check the output. If this confirms my assumption, I advise to read their documentation.
I did run the query directly in Overpass, and I found that for every ´out´ keyword all matches are outputted once - if there's both ´out body;and
out center´, then first normal body response is returned and then the same thing again, just with additional center
keys for each way - so out center;
implies ´out body;, and I think the
overpassQueryBuildershould account for that by only putting one
out` keyword into the query string.
Oh, I see. I have to check the logics in detail. Stay tuned (might take some days).
no problem, thanks ! :)
I was trying to find all runways within a bounding box, and noticed that I get every runway (mapped as a way with
aeroway=runway
) twice. Here's a test code:which prints:
You can see that I got two different
Elements
holding the exact same data. Here's the test area in OSM And Overpass-turbo shows that there is in fact only one way tagged ´aeroway=runway´ in that area%3B%0A%2F%2F%20print%20results%0Aout%20body%3B%0A%3E%3B%0Aout%20skel%20qt%3B&C=-6.02452;144.97202;15).