Skip to content

Where are all the relations? How to extract connection between ways and nodes? #2189

Discussion options

You must be logged in to vote

I was wondering where are all the relations in these tables.

Relations with (multi)polygon geometry will be in planet_osm_polygon.

I don't see any connection between the ways in planet_osm_polygon table and the points in planet_osm_point table. How can I have this connection in the generated tables too?

That rather depends on what you are trying to do. osm2pgsql supports more than one output type, and another might be more appropriate, depending on what you are trying to do. What columns you get, and whether something in the input is treated as an area or a closed line, is also under your control. See e.g. here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants