This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Extracting roadvector data and plotting on the image

0

I want to download an aerial image containing roads from OSM and also download the corresponding road vectors for all the roads in the image from OSM and plot the roadvectors superimposed on the image to highlight the roads. Can somebody help me how to do it?

asked 23 Jan '15, 10:08

ssbals's gravatar image

ssbals
11112
accept rate: 0%


One Answer:

2

OSM does not have aerial images, but suppose you find a provider for such images. Libraries such as Leaflet or OpenLayers allow you to show tiles within a bounding box. You program needs to be aware of this bounding box. Then the program can e.g. create an Overpass query to retrieve all ways and place them over the tiles with the aerial images.

An example how to retrieve WMS tiles with OpenLayers, this could be used to load the aerial images, provided they are available as WMS.

Here is a post describing how to combine Overpass with OpenLayers.

answered 23 Jan '15, 16:49

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

Source code available on GitHub .