osm-building-shapes
Tile Reduce processor to find area, perimeter and a score that defines the shape of the building.
Shape is defined as (4 * PI * area) / (perimeter^2)
as here.
Usage
npm install
- Download OSM QA Tiles.
node index.js [--bbox --zoom] --mbtiles path-to-mbtiles
The output is line delimited FeatureCollection with properties:
{
"building": "yes",
"perimeter": 1.021,
"shape": 50.63,
"_osm_way_id": 143251631,
"area": 0.042
}