All Projects → datadesk → census-map-consolidator

datadesk / census-map-consolidator

Licence: MIT license
Combine Census blocks into new shapes

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to census-map-consolidator

census-map-downloader
Easily download U.S. census maps
Stars: ✭ 31 (+0%)
Mutual labels:  maps, journalism, census, mapping-la-pipeline
census-error-analyzer
Analyze the margin of error in U.S. census data
Stars: ✭ 15 (-51.61%)
Mutual labels:  journalism, census, mapping-la-pipeline
dictionary-renderer-toolkit
The Dictionary Renderer Toolkit provides documentation and tools for the creation of custom dictionary styles for use with the dictionary renderer.
Stars: ✭ 18 (-41.94%)
Mutual labels:  maps
pfootprint
Political Discourse Analysis Using Pre-Trained Word Vectors.
Stars: ✭ 20 (-35.48%)
Mutual labels:  journalism
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+761.29%)
Mutual labels:  maps
los-angeles-police-killings-data
The Los Angeles Times' database of people killed by local police in Los Angeles County.
Stars: ✭ 14 (-54.84%)
Mutual labels:  journalism
hslayers-ng
User interface and map building extensions for OpenLayers
Stars: ✭ 29 (-6.45%)
Mutual labels:  maps
Road Orientation Map
A visualization of road orientations on an interactive map
Stars: ✭ 254 (+719.35%)
Mutual labels:  maps
geopandas-spatial-join-example
An example of how to join point to polygon data with geopandas and Python
Stars: ✭ 21 (-32.26%)
Mutual labels:  geopandas
osmscout-sailfish
OSM Scout for Sailfish OS (offline maps and navigation)
Stars: ✭ 42 (+35.48%)
Mutual labels:  maps
mapkit-android-demo
MapKit Android demo
Stars: ✭ 92 (+196.77%)
Mutual labels:  maps
meow
Daily Bruin's homemade social media manager
Stars: ✭ 42 (+35.48%)
Mutual labels:  journalism
fabrica-collaborative-editing
Plugin to make WordPress more Wiki-like by allowing more than one person to edit the same Post, Page, or Custom Post Type at the same time. When there are conflicting edits, it helps users to view, compare, and merge changes before saving.
Stars: ✭ 19 (-38.71%)
Mutual labels:  journalism
react-azure-maps
React Wrapper for azure-maps-control
Stars: ✭ 32 (+3.23%)
Mutual labels:  maps
Problem-Solving
This Repository consists of my solutions💡 in Python 3 to various problems in Data Structures and Algorithms.🎖️
Stars: ✭ 17 (-45.16%)
Mutual labels:  maps
planetiler
Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Stars: ✭ 823 (+2554.84%)
Mutual labels:  maps
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (+58.06%)
Mutual labels:  maps
geojson-editor
A modified version of Googles Simple GeoJSON Editor
Stars: ✭ 43 (+38.71%)
Mutual labels:  maps
flatmap.io
🚀 The place where people meet technologies
Stars: ✭ 29 (-6.45%)
Mutual labels:  maps
Python-Geopandas-Workshop
In this workshop you will learn about pandas and geopandas by exploring UK Crime Data in a Jupyter notebook
Stars: ✭ 52 (+67.74%)
Mutual labels:  geopandas

census-map-consolidator

Combine Census blocks into new shapes.

Installation

pipenv install census-map-consolidator

Usage

Create a list of Census block GEOIDs. That can be simple like this:

your_block_list = ["060371976001008", "060371976001009"]

Or read in from a file like this:

with open("test_data/dtla.csv", "r") as f:
    your_block_list = f.read().splitlines()

Import our class.

from census_map_consolidator import BlockConsolidator

Pass in the block list as arguments.

c = BlockConsolidator(*your_block_list)

Consolidate the blocks into a single shape. This can take a minute. Big shapefiles have to be downloaded.

c.consolidate()

Write out the new shape. You can do GeoJSON.

c.write("./your-new-shape.geojson")

Or shapefiles.

c.write("./your-new-shape.shp")

That's it. You can inspect your work however you like. But geojsonio is handy.

geojsonio < your-new-shape.geojson

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].