Skip to content

Tile Reduce processor to find area, perimeter and score to define shapes of buildings in OSM using OSM QA Tiles

License

Notifications You must be signed in to change notification settings

mapbox/osm-building-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

screen shot 2016-04-05 at 20 49 40

_Here's a map of building sizes in Monaco_

About

Tile Reduce processor to find area, perimeter and score to define shapes of buildings in OSM using OSM QA Tiles

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •