Home / Data: Planet, Coastlines, Buildings, Admins, Roads / Attribution

Daylight Building Footprints

Buildings, before and after

Daylight building footprints is a joint product of Microsoft Building Footprints and Esri Community Maps Program. We combine the positional accuracy of Microsoft’s footprint data creation and authoritative tags such as name and address provided by authoritative sources in collaboration with Esri.

The image above shows Daylight building data, in contrast to the image below showing OpenStreetMap building data alone.

Buildings, before and after

How To Use

There one of these two workflows to add Daylight Building Footprints 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:

  1. Use Osmium to apply the changes to the planet file. Example:

    osmium apply-changes planet.osm.pbf buildings.osc.bz2 -o everything.osm.pbf
    

    This will result in a single combined PBF file called everything.osm.pbf.

  2. Use Osmium to reorder IDs. Example:

    osmium renumber everything.osm.pbf -o ordered-everything.osm.pbf
    

    This will result in a single combined PBF file called ordered-everything.osm.pbf.

  3. Use osm2pgsql to import the output PBF from previous steps

Alternatively, import Daylight Planet PBF to PostgreSQL then import the OSC file separately. Steps:

  1. Use osm2pgsql to import the Planet PBF

  2. Use osm2pgsql --append to import the OSC file

Current Downloads