Git Product home page Git Product logo

pfb's Introduction

DEPRECATED

This was pulled into azavea/pfb-network-connectivity at 8561f90ba.

Further work should be done over there.


pfb

Docker

To run the analysis in docker, first build the docker image:

docker build -t pfb .

Then run the analysis as follows:

docker run \
    -e PFB_SHPFILE=/data/neighborhood_boundary.shp \
    -e PFB_STATE=ma \
    -e PFB_STATE_FIPS=25 \
    -e NB_INPUT_SRID=2249 \
    -e NB_BOUNDARY_BUFFER=11000 \
    -v /vagrant/data/:/data/ \
    pfb

The -e in this example sets environment variables, which will depend on the analysis you are running.

The -v in this example mounts a local directory inside the docker container under /data/. The PFB_SHPFILE environment variable specifies the .shp file under this directory to use.

This process of mounting a data directory with the input shapefile will be removed in favor of an import process.

pfb's People

Contributors

flibbertigibbet avatar klaash avatar sharph avatar spencerrecneps avatar

Stargazers

 avatar  avatar

Watchers

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

pfb's Issues

Export neighborhood_ways as geojson in export_connectivity.sh

Easiest way to do this is with ogr2ogr, but installing via the gdal-bin package provided by the ubuntugis PPA leads to a dependency conflict with the postgresql-9.6-postgis-2.3 package, where gdal-bin expects libgdal2 and postgresql-9.6-postgis-2.3 expects libgdal1h.

This would resolve nicely if the analysis and postgresql service were two different containers. Otherwise it might be best to install the gdal tools from source?

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.