Comments (4)
Reported: osm2pgsql-dev/osm2pgsql#1386
from pgosm-flex.
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.
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
andgeom2
(horrible name...) with the relation (multilinestring
) ingeom2
. Avoids the conflict at the cost of an additional column and codeIn 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.
Should be fixed. Need to test and hopefully implement.
osm2pgsql-dev/osm2pgsql#1386 (comment)
Related:
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)
- Remove `--schema-name` option
- Managing osm.pgosm_flex via Sqitch breaks ability to move/remove osm schema HOT 2
- Replace `_all` views with tables build using `centroid()` HOT 1
- Docker container fails to run
- Strange tag value "width": "highway=traffic_signals" appearing HOT 2
- Fix comment - osm.place_polygon
- Data missing from `pgosm.road` table
- Add DB Connection information to initial output HOT 1
- Add `place_combined_point` table HOT 1
- Expand checks on prior import to check versions
- Docker build fails to install osm2pgsql - NLOHMANN_INCLUDE_DIR
- Import fails on 'osm.build_nested_admin_polygons' procedure missing HOT 4
- Support changing schema from osm
- Make failure with latest osm2pgsql-replication HOT 2
- Comments point to function in old location
- Update to use Postgres 16
- Remove final uses of deprecated `add_row()` function
- Env var PGOSM_REPLICATION is set but unused
- Update `--force` to also drop `osm2pgsql_properties` table HOT 1
- Update for osm2pgsql 1.10.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgosm-flex.