{"id":19383322,"url":"https://github.com/alignable/gis-talk-example","last_synced_at":"2026-06-11T01:31:09.508Z","repository":{"id":96094686,"uuid":"118699503","full_name":"Alignable/gis-talk-example","owner":"Alignable","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-24T21:48:55.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-24T17:15:39.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alignable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-24T02:24:35.000Z","updated_at":"2018-01-30T00:00:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"725f483d-7eb1-4367-95af-c07f01b8e953","html_url":"https://github.com/Alignable/gis-talk-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alignable/gis-talk-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alignable%2Fgis-talk-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alignable%2Fgis-talk-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alignable%2Fgis-talk-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alignable%2Fgis-talk-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alignable","download_url":"https://codeload.github.com/Alignable/gis-talk-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alignable%2Fgis-talk-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34178819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-10T09:25:33.777Z","updated_at":"2026-06-11T01:31:09.494Z","avatar_url":"https://github.com/Alignable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Political Visualization in Cesium.js\n\n## Step 1. Get the data \u0026 Take a peak\n\nDownload [Counties](http://www2.census.gov/geo/tiger/GENZ2016/shp/cb_2016_us_county_500k.zip) and [Congressional Districts](http://www2.census.gov/geo/tiger/GENZ2016/shp/cb_2016_us_cd115_500k.zip)\n\nUnzip them both to the data/ directory\n\n[Download QGIS](https://qgis.org/en/site/forusers/download.html) (available for all platforms)\n\nOpen up a shape file from both downloads and take a look at it and its features\n\n## Step 2. Install Postgres and PostGIS and convert our data boundries to SQL\n\n`brew install postgresql postgis` or download [postgres.app](http://postgresapp.com/)\n\nRun the convertor:\n```\nshp2pgsql -s SRID cb_2016_us_county_500k.shp public.counties \u003e counties.sql\nshp2pgsql -s SRID cb_2016_us_cd115_500k.shp public.districts \u003e districts.sql\n```\n\nGet yourself a database and load it in PSQL\n```\ncreatedb politics\npsql -d politics -c \"CREATE EXTENSION postgis;\"\npsql -d politics -f counties.sql\npsql -d politics -f districts.sql\npsql -d politics -c \"CREATE INDEX idx_counties_geom ON counties USING gist(geom);\"\npsql -d politics -c \"CREATE INDEX idx_districts_geom ON districts USING gist(geom);\"\n```\n\nNow you can create a PostGIS connection in QGis and verify the data imported\n\n## Step 3. Install Mapnik and Tilstache\n\n```\nbrew install memcached\nbrew install mapnik\npip install mapnik\neasy_install tilestache\neasy_install python_memcached\n```\n\nRun tiles/map.sh and visit [127.0.0.1:8010/counties/#4/59.82/-373.98](http://127.0.0.1:8010/counties/#4/59.82/-373.98) to verify our map.\n\n## Step 4: Augment our data\n\nDownload the 2016 Electrion results CSV from [https://github.com/john-guerra/US_Elections_Results](Github Repo)\n\nLoad and run the jupyter notebook in the data directory.\n\n\n## Step 5: FrontEnd Examples\n\nRun `npm install` and `npm start` to run each\n\n- `frontend-1` - Cesium Hello World\n- `frontend-2` - Custom Imagery Provider\n- `frontend-3` - Adding entities and fly-in\n\n\n## Step 6: Extensions!\n\n- Do something cool with the districts table and the legislators repos\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falignable%2Fgis-talk-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falignable%2Fgis-talk-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falignable%2Fgis-talk-example/lists"}