Missing multipolygons while loading the planet pbf file with GDAL

I am trying to load the plant pbf file using GDAL. But it is not loading all the polygon areas, I am only getting about 111M polygons for the whole planet but this is not correct. In the past we used to get much more than 200M polygons including all the building foorprints. And when I check for admin boundaries, many of the admin area polygons are missing.
This is the config file we are using:
[multipolygons]

common attributes

note: for multipolygons, osm_id=yes instantiates a osm_id field for the id of relations

and a osm_way_id field for the id of closed ways. Both fields are exclusively set.

osm_id=yes
osm_version=no
osm_timestamp=no
osm_uid=no
osm_user=no
osm_changeset=no

keys to report as OGR fields

attributes=name,name:en,type,admin_level,boundary,natural,place,leisure,aeroway,gnis:id,gnis:feature_type,int_name,nat_name,ISO3166-1,ISO3166-1:alpha2,ISO3166-1:alpha3,ISO3166-2,population

keys that should NOT be reported in the “other_tags” field

ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME

uncomment to avoid creation of “other_tags” field

#other_tags=no

uncomment to create “all_tags” field. “all_tags” and “other_tags” are exclusive

#all_tags=yes

Anyone know how many polygons are supposed to be in the plant pbf file?
planet-v1.57.osm.pbf is the pbf file used.

Why Are Polygons Missing When Loading planet-v1.57.osm.pbf with GDAL? - #2 by woodpeck applies also here

Our planet files usually have a date in their name. Where did you pick up the file planet-v1.57.osm.pbf?

1 Like

We actually got the file from the daylight distribution.
https://daylightmap.org/

So may be this is a question for the daylight distribution team?

exactly

Downloading data - OpenStreetMap Wiki may be useful for you if you want to get actual OpenStreetMap data

1 Like

It’s probably not worth it, because Facebook have stopped distributing it :slight_smile:

I suspect the reason that they were missing was deliberate - as I recall, separate layers were available to complement the main one - I seem to remember an “AI guessed buildings layer” that looked complete rather than accurate (and is therefore arguably more useful to someone who “just wants a map”).

2 Likes