Git Product home page Git Product logo

chef-metroextractor's Introduction

Metroextractor Chef

Build Status

Attribution

Heavily influenced by Mike Migurski's Extractotron

What does it do?

Downloads the latest planet in pbf format. Produces, via osmconvert or vex, a number of metro extracts in both pbf and bz2 formats. Produces shape files in both imposm and osm2pgsql formats.

Projections

GeoJSON is generated via ogr2ogr and output in CRS:84 (e.g. EPSG:4326) projection.

Imposm shapfiles are generated in EPSG:4326.

What hardware do I need?

This depends on a few factors:

  • what backend processing system for extracts do you want to use? We support vex and osmconvert.
  • if you're using vex, do you have enough memory to store the planet in RAM?
  • if osmconvert, how many cores do you have and how fast are they?

The short version is that this could take anywhere from a few hours to days depending on setup and hardware .

If you'd rather not go that route, you're in luck. We'll be producing extracts weekly, and you can find them here: Mapzen Metro Extracts

Contributing

Extract creation is driven off the cities.json file found here: metroextractor-cities. If you'd like to add an extract, you can either update the file directly if you feel comfortable doing so and submit a pull request, or open a GitHub issue and we'll look into doing it for you.

If you'd like to update any other code, please fork, update, write specs for your changes and submit a pull.

Usage

include_recipe 'metroextractor'

Supported Platforms

Tested and supported on the following platforms:

  • Ubuntu 14.04LTS

Requirements

  • Chef >= 11.4

Attributes

Dependencies

apt, ark, osm2pgsql, postgresql, python, user

Vagrant Environment

Installation

vagrant plugin install vagrant-berkshelf 
bundle install
berks install
vagrant up
vagrant ssh

Note

  • running a planet download and then processing extracts on your local machine might be hit or miss (likely miss)

I don't like Vagrant

  • well then sir, provision an Ubuntu12.04 LTS system with the provider of your choice, and then bootstrap with chef-solo: knife solo bootstrap root@${host} -r 'recipe[metroextractor]'
  • and re-cook with the following: knife solo cook root@${host} -r 'recipe[metroextractor]'
  • alternatively, you can add the metroextractor cookbook to your chef server and wrap it as you see fit

License and Authors

License: GPL Authors: [email protected]

chef-metroextractor's People

Contributors

erictheise avatar geopan avatar heffergm avatar nvkelso avatar rmarianski avatar

Watchers

 avatar  avatar

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.