Giter VIP home page Giter VIP logo

Comments (4)

tyrasd avatar tyrasd commented on June 11, 2024

The difference is that QuickOSM is using a different OSM data interpreter/converter than overpass turbo. While the latter is using osmtogeojson, I presume that QuickOSM is using QGIS' internal routines for handling OSM data (via OGR, I guess).

This explains why QuickOSM can't handle the geometry="center" output in the second part of this issue, because this is a very new Overpass-API feature that is still to be implemented on many Overpass-data-consuming programs.

The small differences in the first part of this ticket likely result from slight differences in how certain corner cases in OSM data are interpreted by the different converter libraries. For example node/2377791618 (a member of a tourism=zoo site relation) is a delta between the two programs (I don't see any difference in lines, but I can't test it directly in the QuickOSM plugin atm because of #26). This node is probably ignored by QGIS because it doesn't have any tags. osmtogeojson preserves it, however, because it is a member of a relation.

from quickosm.

sfkeller avatar sfkeller commented on June 11, 2024

I see. I think there is another explanation because of the somehow idiosyncratic concept of the Overpass API: I assume, that it's a two step process where XML-attribute output (<"osm-script output="json"...) defines the result (XML or JSON) and the the XML-tag "print" (<print mode="... ) defines how the result is being processed in the client.

Regarding to this issue, I guess, QuickOSM ignores the print statement completely (so it's not really because of OGR parsing the result document).

If this is correct that the print statement is ignored, this should be communicated to end users in the help pages of QuickOSM.

from quickosm.

Gustry avatar Gustry commented on June 11, 2024

In OGR, the osmconf defines which tags are unsignificant if there are alone :
https://github.com/3liz/QgisQuickOSMPlugin/blob/master/CoreQuickOSM/Parser/QuickOSMconf.ini#L22
This might be the reason for the first query.

For the second query, the "center" won't be fix in OGR : http://trac.osgeo.org/gdal/ticket/5523

QuickOSM doesn't change anything about the print statement. You can try body, skeleton, meta. You should get different results.
However, QuickOSM needs XML (because OGR don't know this kind of json), so the output is re-written before sending the query to the server.

from quickosm.

sfkeller avatar sfkeller commented on June 11, 2024

Thanks!

from quickosm.

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.