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.58.osm.pbf
– Complete Daylight v1.58 in OSM PBF formatml-buildings-v1.58.osm.pbf
– Microsoft Building Footprints addition to Daylight v1.58fb-ml-roads-v1.58.osc.gz
– Facebook Experimental ML Roads addition to Daylight v1.58admin-v1.58.osc.gz
– Administrative boundaries for Daylight v1.58coastlines-v1.58.tgz
– Coastline land polygons for Daylight v1.58preferred-localization-v1.58.tsv
– Additional translations for Daylight v1.58important-features-v1.58.json
– Library of curated major map features for Daylight v1.58