Home / Data: Planet, Coastlines, Buildings, Admins, Roads / Attribution
Daylight administrative boundaries are sourced directly from OpenStreetMap, and provide optional admin coverage beyond Daylight’s core focus on street-scale features.
There one of these two workflows to add Daylight Administrative Boundaries to a map using only open source tools.
Use Osmium to apply the OSC file to the Daylight Planet PBF and fix negative IDs before importing them to PostgreSQL database with osm2pgsql. Steps:
Use Osmium to apply the changes to the planet file. Example:
osmium apply-changes planet.osm.pbf admins.osc.gz -o everything.osm.pbf
This will result in a single combined PBF file called everything.osm.pbf
.
Use osm2pgsql
to import the output PBF from previous steps
Alternatively, import Daylight Planet PBF to PostgreSQL then import the OSC file separately. Steps:
Use osm2pgsql
to import the Planet PBF
Use osm2pgsql --append
to import the OSC file
planet-v1.55.osm.pbf
– Complete Daylight v1.55 in OSM PBF formatml-buildings-v1.55.osm.pbf
– Microsoft Building Footprints addition to Daylight v1.55fb-ml-roads-v1.55.osc.gz
– Facebook Experimental ML Roads addition to Daylight v1.55admin-v1.55.osc.gz
– Administrative boundaries for Daylight v1.55coastlines-v1.55.tgz
– Coastline land polygons for Daylight v1.55preferred-localization-v1.55.tsv
– Additional translations for Daylight v1.55important-features-v1.55.json
– Library of curated major map features for Daylight v1.55