V
V
vovik01342014-03-13 15:46:20
OpenStreetMap
vovik0134, 2014-03-13 15:46:20

How to export roads from OSM?

Hello.
There was a problem with export of roads from OpenStreetMap. You need to somehow pull out the coordinates of the roads, the width and quality of the coverage.
The problem is that I haven't worked with OSM at all and have learned about its existence not so long ago. Ask for help from knowledgeable people. Tell me where to start, what to read to complete the task.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Zverev, 2014-04-11
@Zverik

On a small scale (a city with a population of up to 100 thousand, for example), you can use the OverpassAPI: this query will show all the streets with tags (you are interested in width and surface, although they are not common), there are convenient formats by the "export" button.
In large ones, it will be easiest to import a dump (for example, downloaded from a GIS Lab) into the PostgreSQL + PostGIS database using osm2pgsql (an example of how I recently did this is here ). Then it is easy to get the necessary roads in the required format from the database using one sql query.

E
Egor Kazantsev, 2014-03-13
@saintbyte

Take osm file. From there all nodes are obtained (of type cat file.osm | grep "<node") then all the way with road tags, in these way there is a list of nodes - coordinates, tags may give data on the width and quality

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question