postgresql - Openstreetmaps - continuous road? -


i imported osm data switzerland in postgres , interested in getting road data of continuous part of highway (i know name),that is, part connects 2 specific cities. highway quite big (a1) , connects lot of cities together.

i not sure how sequence of road segments stored in postgres (ie, how 1 knows 1 road segment directly after other). how should query postgres linestring route on city another? can visualize data of whole highway (which spans multiple cities) in quantumgis doing query:

select osm_id,way planet_osm_roads highway='motorway' , ref='a1'; 

but don't know how osm_ids interested in, in order appear in route. not want bounding box constraint in clauses because looking general solution , also, still not sure how order of sequence of road segments saved.

the way did use pgrouting, namely, pgr_dijkstra algorithm. loaded osm data format fit use pgrouting using osm2pgrouting tool.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -