I downloaded OSM point, line, and polygon data for Los Angeles County in California from https://mapzen.com/metro-extracts/, and from the lines shapefile I want to select all streets that have bike lanes on them. Or using the website language, I want to select all features in the OSM lines shapefile that would have the tag ‘cycleway=lane’ on the OSM website. How do I do that?
Here is what I have tried so far:
-selecting all shapefile features where route = ‘bicycle’ – this gets me a very partial list of streets with bike lanes and leaves off many streets that, according to the OSM website, have the tag ‘cycleway=lane’ and
-selecting all shapefile features where highway = ‘cycleway’, but this only returns off-street bike paths, whereas I am looking for streets with on-street painted bike lanes.
-selecting all shapefile features where bicycle = ‘yes’ or bicycle = ‘designated’, which again gives me a very partial list and leaves off many streets that, according to the OSM website, have the cycleway=‘lane’ tag.
Any other thoughts? How do I create a shapefile of all lines that have the ‘cycleway=lane’ tag?
Any help much appreciated. I’ve tried searching for ‘bike’, ‘bike lanes’, ‘bicycle’, ‘cycleway’ in the forum and no one else seems to have posted a similar topic, hence why I am posting this new topic.
is it 100% sure that you want to work with shapefiles from OSM data? Or can you work with original raw OSM data that is NOT identical with shapefile format, but similar?
I got exactly what I wanted by using the Overpass Turbo site recommended by ligfietser, running the query for bike lanes, exporting the output as KML, then converting to SHP with QGIS. The QuickOSM plugin for QGIS also gets the same result and is more convenient (don’t even need to leave the program!)
Thanks again. I’ve literally had a whole new world of data options opened to me!