Faceby
a 3D map and guided tour of my village, built from Environment Agency LIDAR
Source on github.com/craigloftus/faceby.

Faceby is the village I live in, about 190 people under Carlton Bank on the north-west edge of the North York Moors. This is a 3D map of it with a guided tour, built from Environment Agency LIDAR and OpenStreetMap. It is a stepping stone to a larger project, and an excuse to play with LIDAR visualisations.




Every roof was checked
OpenStreetMap has 179 building footprints in the parish and none of them has a height. The heights come from the LIDAR surface model. A script proposes a set of blocks for each building, each block a rectangle with a flat, gable, hip, pyramid or lean-to roof, fitted to the LIDAR profile across the ridge.

The middle of the village. Each building is a few blocks, and each block has its own roof shape and height.
An earlier version trusted the fit and was confidently wrong too often, so now nothing is drawn until someone has looked at it. Of the 179 proposals, 126 were accepted as they were, 42 were edited, 4 were rebuilt from LIDAR cross-sections and 7 were done by hand first. The usual faults were a ridge on the wrong axis, a shed that was really a gable, and tree canopy mistaken for a roof. The OpenStreetMap footprints also turned out to sit about a metre east and a metre south of the LIDAR, which had to be corrected before any block lined up.
No map server
The app is static files with no tile server and no API key. It comes to 18 MB, and 17 MB of that is terrain, packed as PNGs. The buildings are under 200 KB because the browser generates their geometry from the block list. The README has the rest, including how the first version drew 4.1 million triangles a frame for a view that was not moving.
The ridgeline drawing at the top of this site is made from the same LIDAR.