Hi, I'm trying to put my .osm file into postgres db using osm2pgsql. I've tried:
The problem is that the osm_id of the table "planet_osm_roads" on db is not the same id of the "way" tag on .osm file. For example, I took an id x of some way from the .osm file and then query the db by
and I got nothing. I want to get ways from db by thier ids on .osm file. After that I want to get all nodes of this way. There is any way to do that? asked 17 May '12, 23:18 uriel |
planet_osm_roads will only contain a selection of geometries (large streets and railways mostly). Use planet_osm_line to find smaller line geometries. You will not find the way/node link in these tables however as they contain pre-computed geometries. If you really need node IDs then you have to look them up in the planet_osm_ways table (which you will only get with the answered 17 May '12, 23:24 Frederik Ramm ♦ Thanks. osmosis helped.
(18 May '12, 00:25)
uriel
|