Replies: 1 comment 1 reply
-
Turn restrictions are mapped as special relations. They can not just be mapped to simple lines, processing will be much more involved. The old pgsql output of osm2pgsql was never intended to handle them and will simply not work for you. The newer flex output of osm2pgsql can, in theory, handle turn restriction relations, but some configuration and post-processing will be necessary to make the data useful. Please familiarize yourself with how turn restriction relations work and with the flex output. You might be able to get something to work, but it will need some effort. I have not yet seen a configuration for osm2pgsql that handles turn restrictions. |
Beta Was this translation helpful? Give feedback.
-
Hi I’m using osm2pgsql to import OpenStreetMap (OSM) data into a PostgreSQL database for analysis.
Sadly I’m not seeing all the expected turn restrictions within a specified bounding box.
osm2pgsql Command:
osm2pgsql -U postgres -W -d osm_data -H localhost -s -G --number-processes 30 -C 102400 dach-latest.osm.pbf
Modifications to default.style:
SQL Query:
I have verified the presence of more restrictions within this bounding box using https://ahorn.lima-city.de/tr/
which shows a greater variety of restrictions.
What I’ve Tried:
Updating Data: Ensured my database is up-to-date with the latest OSM data.
Query Adjustments: Simplified and expanded the query to include all potential restrictions without the highway filter.
Question:
What could be causing the discrepancy between the restrictions visible in the external tool and those retrieved from my PostgreSQL database?
Are there any additional configurations or steps I should consider to ensure all relevant restrictions are captured?
Any insights or suggestions would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions