I am attempting to extract highways (motorways, trunk, and primary roads) for Europe from OpenStreetMap using Osmosis. As I am new to using Osmosis, as an intial test, I downloaded the country osm.pbf file for Denmark from Geofabrik. Using Osmosis and the follow query, I got the roads I needed:
osmosis --rbf denmark-latest.osm.pbf --tf accept-ways highway=motorway,trunk,primary --used-node --wx roads_denmark.osm
I then downloaded the Europe-latest.osm.pbf from geofabrik and ran the same query expecting the same results, but for Europe. However, there are many roads missing, and when you compare the Denmark output it is clearly incorrect. In the image below, green is the output when the Danish data is used, and red when the Europe data is used. The European data is only a fraction of the output from when the Danish data is used.
- Is there something fundamental I missing in my understanding? Are the country and European geofabrik data different (apart from coverage)?
- Are there potential adjustments I can make to my query to extract the highways?