Git Product home page Git Product logo

dcbuildings's Introduction

DC building and address import

Work in progress, do not use for import yet

Generates an OSM file of buildings with addresses per DC census tract, ready to be used in JOSM for a manual review and upload to OpenStreetMap.

Import proposal

Prerequisites

libxml2 
libxslt
spatialindex
GDAL  

Mac OSX specific install

# install brew http://brew.sh

brew install libxml2 
brew install libxslt 
brew install spatialindex 
brew install gdal 

Set up Python virtualenv and get dependencies

# may need to easy_install pip and pip install virtualenv 
virtualenv ~/venvs/dcbuildings
source ~/venvs/dcbuildings/bin/activate 
pip install -r requirements.txt

Usage

Run all stages:

# Download all files and process them into a building
# and an address .osm file per census tract.
make

You can run stages separately, like so:

# Download and expand all files, reproject
make download

# Chunk address and building files by census tracts
make chunks

# Generate importable .osm files.
# This will populate the osm/ directory with one .osm file per
# DC census tract.
make osm

# Clean up all intermediary files:
make clean

# For testing it's useful to convert just a single census tract.
# For instance, convert census tract 000100:
python convert.py 000100

Source data

Features

  • Conflates buildings and addresses
  • Cleans address names
  • Exports one OSM XML building file per DC census tract
  • Exports OSM XML address files for addresses that pertain to buildings with more than one address
  • Handles multipolygons
  • Simplifies building shapes

Attribute mapping

Buildings

Each building is a closed way tagged with:

building="yes"
addr:housenumber="ADDRNUM ADDRNUMSUF" # If available
addr:streetname="STNAME STREET_TYP QUADRANT" # If available
addr:postcode="ZIPCODE" # If available

(All entities in CAPS are from DCGIS address file.)

Addresses

Each address is a node tagged with:

addr:housenumber="ADDRNUM ADDRNUMSUF"
addr:streetname="STNAME STREET_TYP QUADRANT"
addr:postcode=ZIPCODE

(All entities in CAPS from DCGIS address file.)

Related

dcbuildings's People

Contributors

andinocl avatar lxbarth avatar mikelmaron avatar tlpinney avatar tmcw avatar wildintellect avatar

Watchers

 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.