prclz
is a library for:
- generating vectors for street blocks in a neighborhood using street network information from OpenStreetMap
- creating parcels/cadastral maps for building footprints and other land use features within each block
- calculating structural and areal features (k-complexity of access graph, percentage of land used by buildings, etc) at the block and neighborhood level
-
prclz
: main libraryblocks
: extract vector polygons representing street blocks from street network informationfeatures
: calculate per-block featuresparcels
: generate cadastral parcels tesselating each block given building/land use footprintstopology
: planar graph implementation, with tools to calculate weak duals. largely taken from openreblock/topology.
-
smoketests
: not quite unit tests, but visual tests to make sure things look right -
osm-etl
: scripts to perform ETL on*.osm.pbf
files and extract relevant features. -
midway
: end-to-end workflow to be run on RCC'smidway
cluster -
requirements
: required packages
- on midway, load the necessary modules
module load intel/18.0
module load gdal/2.2
module unload python
module load Anaconda3/5.1.0
module load parallel
- Set up a conda virtual environment, and activate it.
. ./midway/conda_setup.sh
conda create --name mnp
source activate mnp
- Install the requirements. (Due to version pinning/compatibility, some packages aren't in the standard conda repos, so we install them with
pip
).
conda install --name mnp -f -y -q -c anaconda -c conda-forge --file requirements/conda-requirements.txt
pip3 install -r requirements/pip-requirements.txt
- From the top-level directory, install
prclz
in editable mode.
pip3 install -e .
- Deactivate your virtual environment once you're done
conda deactivate