Skip to main content

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

dtla

Metadata

Release files for census-map-consolidator 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for census-map-consolidator 0.0.6
File Size Uploaded Provenance Actions
census-map-consolidator-0.0.6.tar.gz 60.3 MB Without provenance Details for census-map-consolidator-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for census-map-consolidator 0.0.6
File Interpreter ABI Platform Actions
census_map_consolidator-0.0.6-py2.py3-none-any.whl Python 2, Python 3 none any Details for census_map_consolidator-0.0.6-py2.py3-none-any.whl

Total release size: 60.3 MB

Release files / census-map-consolidator-0.0.6.tar.gz

Download URL census-map-consolidator-0.0.6.tar.gz
Size 60.3 MB
Tags Source
SHA-256 checksum
How to use checksums
b96e6e4e8b392f863bb1084f9feb376c995de235e27942e5c7dea8c52c5e1350
BLAKE2b-256 checksum
How to use checksums
26e02b8d4cce9862ad352c17a91759558b6e19a054553f5bf6aa422ae6090722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / census_map_consolidator-0.0.6-py2.py3-none-any.whl

Download URL census_map_consolidator-0.0.6-py2.py3-none-any.whl
Size 4.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e7d4611da88dd6104059b6f86fcd6ef79797248aa0a109bd7702b185a8548dde
BLAKE2b-256 checksum
How to use checksums
92572e5ae3dd301d0e1334259b323c312e71788b6a85214112e394efaaa3eecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for census-map-consolidator 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page