I use the --addnodes flag as per the documentation and I can see that osm_nodes and osm_ways tables do get populated. However, osm_relations has 0 records after running osm2pgrouting and "Final osm_relations:" is never mentioned in the output:
Creating tables...
TABLE: ways_vertices_pgr created ... OK.
TABLE: ways created ... OK.
TABLE: pointsofinterest created ... OK.
TABLE: configuration created ... OK.
TABLE: osm_nodes created ... OK.
TABLE: osm_ways created ... OK.
TABLE: osm_relations created ... OK.
Opening configuration file: /usr/local/share/osm2pgrouting/mapconfig.xml
Parsing configuration
Exporting configuration ...
- Done
Counting lines ...
- Done
Opening data file: home/map.osm total lines: 175957
Parsing data
Current osm_nodes: 48000
Final osm_nodes: 48375
Current osm_ways: 6000
Final osm_ways: 6320
...
End Of file
Finish Parsing data
Adding auxiliary tables to database...
Export Ways ...
...
Creating indexes ...
Processing Points of Interest ...
Adding functions for processing Points of Interest ...
To process pointsOfInterest table:
osm2pgr_pois_update(radius default 200, within default 50)
- Using areas of (radius)mts on POIS
- Using edges that are at least (within) mts of each POI
POIS that do not have a closest edge is considered as too far
#########################
size of streets: 6320
Execution started at: Tue May 30 10:07:09 2023
Execution ended at: Tue May 30 10:07:21 2023
Elapsed time: 11.767 Seconds.
User CPU time: -> 1.12268 seconds
Sample Data
A sample .osm file is attached (please rename from txt to osm if needed), however I have tried other .osm exports that contain osm relations with the same result.
Problem
When running
osm2pgrouting
on a typical.osm
file with the--addnodes
option,osm_relations
table stays empty.To Reproduce
Expectation
I use the
--addnodes
flag as per the documentation and I can see thatosm_nodes
andosm_ways
tables do get populated. However,osm_relations
has 0 records after runningosm2pgrouting
and "Final osm_relations:" is never mentioned in the output:Sample Data
A sample
.osm
file is attached (please rename fromtxt
toosm
if needed), however I have tried other.osm
exports that containosm
relations with the same result.haywards-heath-uk-small-extract.txt
Platform/versions