Code Monkey home page Code Monkey logo

Comments (4)

mmd-osm avatar mmd-osm commented on June 13, 2024

I haven't looked into your example in detail, most likely, the relations in question share the same ways as the area. However, according to https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_area_(area) The area filter selects all elements of the chosen type that are inside the given area or areas Note that the word "inside" is really important here.

Also, I'd recommend to discuss such HOWTO issues on https://community.osm.org instead.

from overpass-turbo.

Mahabarata avatar Mahabarata commented on June 13, 2024

Except that the result of the query shows the relation 571771 itself.

In another way of speaking, the query finds the relation 571771 and only this relation (first line), changes this relation into an "area" (second line) then tries to find all relations with a specific tag that are in this area (third line) : so it finds the relation 571771 itself but not the relation 3825989 when this relation is in the area (and is part of the relation 571771 itself as a member).

For me it is incoherent that the third line finds the relation 571771 and not the relation 3825989 : it looks like a bug so I think only you (I mean the developers of overpass and not the community) can find out what is happening.

I have another more complex result : the same query for another country (replace "Marshall Islands" with "Oman" in the above query). This country has a main area and 2 exclaves, see https://www.openstreetmap.org/relation/305138#map=6/21.739/56.019. The final result shows all the relations inside this area (in particular the complex relation https://www.openstreetmap.org/relation/3781315 = good news) but also a relation which is clearly outside the area : https://www.openstreetmap.org/relation/12905765#map=6/21.739/56.019

Overpass-turbo is a great query software, I use it a lot to find problems in osm datas.

But I stopped to trust "map_to_area" because sometimes it gives not enough datas and sometimes too much datas : I hope you will find what is going on because this statement is (will be) very useful.

Best regards.

from overpass-turbo.

mmd-osm avatar mmd-osm commented on June 13, 2024

Thank you for your comment. In case you want to report some issue with is_in, you need to head to the Overpass API backend repo instead. This repo covers the web frontend only.

https://github.com/drolbr/Overpass-API

from overpass-turbo.

Mahabarata avatar Mahabarata commented on June 13, 2024

Done, thanks

from overpass-turbo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.