GithubHelp home page GithubHelp logo

mapbox / osm-building-shapes Goto Github PK

View Code? Open in Web Editor NEW
8.0 74.0 4.0 12 KB

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

License: ISC License

JavaScript 63.49% Shell 36.51%

osm-building-shapes's Introduction

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_

osm-building-shapes's People

Contributors

geohacker avatar maning avatar oini avatar tmcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osm-building-shapes's Issues

Name

Validate features is pretty global and generic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.