Code Monkey home page Code Monkey logo

machine's Introduction

OA Machine

Scripts for running OpenAddresses on a complete data set and publishing the results. Uses OpenAddresses data sources to work.

Status

This code is being used to process the complete OA dataset on an expected-weekly basis, with output visible at data.openaddresses.io.

Build Status

Installation scripts for preparing a fresh install of Ubuntu 14.04 can be found in chef. Run them from a Git checkout like this:

sudo apt-get update
sudo chef/run.sh

Complete sources will be checked out to /var/opt/openaddresses/sources.

Run a single source locally with openaddr-process-one:

openaddr-process-one -l <log> <path to source JSON> <output directory>

For more than one source file, OpenAddresses requires Amazon S3 to work. You can set the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY or provide values as arguments to openaddr-process.

Run the complete process with openaddr-process:

openaddr-process -a <AWS key> -s <AWS secret> -l <log> data.openaddresses.io

Run it on an Amazon EC2 spot instance with openaddr-ec2-run:

openaddr-ec2-run -a <AWS key> -s <AWS secret> data.openaddresses.io

Development

Modify the contents of openaddr/paths.py with locations of your local openaddresses.

Test the OpenAddresses machine with test.py:

python test.py

Run the complete process from the openaddr module:

python -m openaddr.process_all -a <AWS key> -s <AWS secret> -l <log> data.openaddresses.io

Extras

Convert remote ESRI feature services to GeoJSON with openaddr-esri2geojson:

openaddr-esri2geojson <ESRI URL> <GeoJSON path>

machine's People

Contributors

migurski avatar nelsonminar avatar iandees avatar hannesj avatar lowks avatar minicodemonkey avatar

Watchers

James Cloos avatar Matt Erbst 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.