I’m currently trying to pull out Canada’s polygon data and separate it by admin levels and when I was using https://download.geofabrik.de/north-america/canada-latest.osm.pbf. I’m unable to find Canada’s Country polygon (osm id of 1428125) in that file. I’m able to find it for greenland and mexico (all at admin level 2). I was wondering if it’s just missing from the current dataset or if I’m missing something.
For start note that it is only one of processed OSM extracts. See Downloading data - OpenStreetMap Wiki for other possible solutions that may or may not be better for you.
I then loaded “c1.osm” into josm. Apart from 5 role verification issues, it seems OK.
Edit: For completeness the role verification issues were missing “role-outer” or “role=inner”. There was also “incomplete coastline” (entirely expected since Canada is not exactly one island).
That’s weird. I’m using two different ways to try and look at them one is I’m using ogr2ogr to convert it to a sqlite database and then load that in qgis.
Then the other way is I’m using python with osmium and pandas to separate them based on admin levels and converting the dataframes over to shapefiles to load into qgis.
The thing is I’m getting the country polygons for Greenland and Mexico. Along with trying different data sources for Canada and not getting anything. When I tried using just osmium using what Andy said I saw a part of the polygon, but it has a large hole in it.