# osm-building-shapes **Repository Path**: mirrors_mapbox/osm-building-shapes ## Basic Information - **Project Name**: osm-building-shapes - **Description**: Tile Reduce processor to find area, perimeter and score to define shapes of buildings in OSM using OSM QA Tiles - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-10-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](http://www.empix.com/NE%20HELP/functions/glossary/morphometric_param.htm). #### Usage * `npm install` * Download [OSM QA Tiles](osmlab.github.io/osm-qa-tiles/). * `node index.js [--bbox --zoom] --mbtiles path-to-mbtiles` The output is line delimited FeatureCollection with properties: ```json { "building": "yes", "perimeter": 1.021, "shape": 50.63, "_osm_way_id": 143251631, "area": 0.042 } ``` screen shot 2016-04-05 at 20 49 40 _Here's a map of building sizes in Monaco_