Giter Site home page Giter Site logo

Comments (4)

rustprooflabs avatar rustprooflabs commented on May 18, 2024

Reported: osm2pgsql-dev/osm2pgsql#1386

from pgosm-flex.

rustprooflabs avatar rustprooflabs commented on May 18, 2024

Workaround?

In the meantime this might work as a simple workaround that's easy to undo when the blocking issue is resolved.

In Lua: the tables blocked by this could have two columns, geom and geom2 (horrible name...) with the relation (multilinestring) in geom2. Avoids the conflict at the cost of an additional column and code

In SQL: Create view to using ST_Multi() to combine the two columns for easy querying

from pgosm-flex.

rustprooflabs avatar rustprooflabs commented on May 18, 2024

Workaround?

In the meantime this might work as a simple workaround that's easy to undo when the blocking issue is resolved.

In Lua: the tables blocked by this could have two columns, geom and geom2 (horrible name...) with the relation (multilinestring) in geom2. Avoids the conflict at the cost of an additional column and code

In SQL: Create view to using ST_Multi() to combine the two columns for easy querying

Multiple geoms in a single table do not work for this. Attempting to add two geometry columns (one linestring the other multilinestring) results in error from osm2pgsql. On every row, one of the two geometries would be NULL, seems to be the issue.

ERROR: Failed to execute Lua function 'osm2pgsql.process_relation': ./style/road.lua:140: Error in 'add_row': Missing geometry transformation for column 'geom_s'.

Throwing error appears to be intentional, found here: https://github.com/openstreetmap/osm2pgsql/blob/c73c6f13352bc79ad0fcf7142061c012dec3674a/src/output-flex.cpp#L921-L925

from pgosm-flex.

rustprooflabs avatar rustprooflabs commented on May 18, 2024

Should be fixed. Need to test and hopefully implement.

osm2pgsql-dev/osm2pgsql#1386 (comment)

Related:

osm2pgsql-dev/osm2pgsql#1736

Multiple geometries mentioned in #2 (comment) also looks to be implemented. osm2pgsql-dev/osm2pgsql#1746. While I'm not concerned with that functionality in this issue, it does open up some interesting opportunities.

from pgosm-flex.

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.