{"id":13567039,"url":"https://github.com/datadesk/census-map-consolidator","last_synced_at":"2025-10-13T03:13:24.834Z","repository":{"id":34412051,"uuid":"178018053","full_name":"datadesk/census-map-consolidator","owner":"datadesk","description":"Combine Census blocks into new shapes","archived":false,"fork":false,"pushed_at":"2023-02-23T19:49:15.000Z","size":60434,"stargazers_count":31,"open_issues_count":5,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-24T10:21:26.628Z","etag":null,"topics":["census","geopandas","geospatial-data","journalism","mapping-la-pipeline","maps","pandas","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datadesk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-27T15:02:14.000Z","updated_at":"2022-12-14T22:58:59.000Z","dependencies_parsed_at":"2024-08-01T13:39:32.896Z","dependency_job_id":null,"html_url":"https://github.com/datadesk/census-map-consolidator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadesk%2Fcensus-map-consolidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadesk%2Fcensus-map-consolidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadesk%2Fcensus-map-consolidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadesk%2Fcensus-map-consolidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datadesk","download_url":"https://codeload.github.com/datadesk/census-map-consolidator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801160,"owners_count":20998339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["census","geopandas","geospatial-data","journalism","mapping-la-pipeline","maps","pandas","python"],"created_at":"2024-08-01T13:02:22.204Z","updated_at":"2025-10-13T03:13:19.801Z","avatar_url":"https://github.com/datadesk.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# census-map-consolidator\n\nCombine Census blocks into new shapes.\n\n### Installation\n\n```bash\npipenv install census-map-consolidator\n```\n\n### Usage\n\nCreate a list of Census block GEOIDs. That can be simple like this:\n\n```python\nyour_block_list = [\"060371976001008\", \"060371976001009\"]\n```\n\nOr read in from a file like this:\n\n```python\nwith open(\"test_data/dtla.csv\", \"r\") as f:\n    your_block_list = f.read().splitlines()\n```\n\nImport our class.\n\n```python\nfrom census_map_consolidator import BlockConsolidator\n```\n\nPass in the block list as arguments.\n\n```python\nc = BlockConsolidator(*your_block_list)\n```\n\nConsolidate the blocks into a single shape. This can take a minute. Big shapefiles have to be downloaded.\n\n```python\nc.consolidate()\n```\n\nWrite out the new shape. You can do GeoJSON.\n\n```python\nc.write(\"./your-new-shape.geojson\")\n```\n\nOr shapefiles.\n\n```python\nc.write(\"./your-new-shape.shp\")\n```\n\nThat's it. You can inspect your work however you like. But [geojsonio](https://github.com/mapbox/geojsonio-cli) is handy.\n\n```bash\ngeojsonio \u003c your-new-shape.geojson\n```\n\n## Links\n\n* Issues: [github.com/datadesk/census-map-consolidator/issues](https://github.com/datadesk/census-map-consolidator/issues)\n* Packaging: [pypi.python.org/pypi/census-map-consolidator](https://pypi.python.org/pypi/census-map-consolidator)\n* Testing: [github.com/datadesk/census-map-consolidator/actions](https://github.com/datadesk/census-map-consolidator/actions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadesk%2Fcensus-map-consolidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadesk%2Fcensus-map-consolidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadesk%2Fcensus-map-consolidator/lists"}