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

Where are layers (shp files) for public transportation?

0

Hi

I'm new to using OSM. Currently I'm looking at OSM data through a GIS program (MapInfo) I have downloaded shape files for my country (Denmark) and looking through data. I'm interested in ferry lines, and I can not figure out where to find the data containing public transportation. Is it possible I have to extract this data myself somehow and convert it into shapefiles in order to see it? I can't find any premade shapefiles containing ferry routes/lines.

asked 22 May '13, 14:20

Kasper%20Pedersen's gravatar image

Kasper Pedersen
11113
accept rate: 0%


2 Answers:

2

Ferry lines are often present in OSM as simple line geometries tagged appropriately. Extracting these from OSM using e.g. osm2shp or osmjs should be straightforward. Other public transport - trains, buses - is often more complex as it is modelled in the form of relations which are not perfectly supported by these tools. Your best bet is perhaps to import the data into a PostGIS database with osm2pgsql and then export from there.

answered 22 May '13, 15:29

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

2

Yes, you'll have to extract them yourself, using e.g. http://www.osm974.re/osm2gis/ or one of the other methods described in the wiki at https://wiki.openstreetmap.org/wiki/Shapefiles .

The Key-Value-Combination you need is route=ferry

edit: osm2gis does seem to be quite bad for obtaining large-scale sparse data extracts. So you'll be best off by downloading a denmark OSM extract, then filtering for route=ferry using osmfilter and then creating a shapefile from that.

answered 22 May '13, 16:45

gormo's gravatar image

gormo
2.9k32660
accept rate: 13%

edited 22 May '13, 16:48

Source code available on GitHub .