Git Product home page Git Product logo

Comments (2)

apmon avatar apmon commented on May 25, 2024

The culpable code is likely https://github.com/openstreetmap/osm2pgsql/blob/master/tagtransform.c#L525

If it encounters a multipolygon relation with no tags of its own, it copies all of the tags of the outer member ways over and applies it to the multipolygon. So as long as the multi-polygon doesn't have its own tags and there is at least one outer way with building=yes, then the polygon in the db will have building=yes set.

I am not sure if this is actually a bug. If the outer ways aren't all of identical type, then the multi-polygon probably really should have the relevant tags set directly.

The new lua based tagtransform behaves slightly different in this respect by default (as I am not sure there is a well defined behaviour in these cases). Furthermore, there you can specify exactly how you want it to behave in the lua script.

from osm2pgsql.

lonvia avatar lonvia commented on May 25, 2024

Fixed by dropping all old-style multipoygon handling.

from osm2pgsql.

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.