Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmullen/nghis-simplifier
Simplify NGHIS shapefiles for, among other uses, CartoDB
https://github.com/lmullen/nghis-simplifier
Last synced: 27 days ago
JSON representation
Simplify NGHIS shapefiles for, among other uses, CartoDB
- Host: GitHub
- URL: https://github.com/lmullen/nghis-simplifier
- Owner: lmullen
- Created: 2016-02-22T15:54:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-04T21:07:11.000Z (almost 9 years ago)
- Last Synced: 2024-10-28T04:59:16.150Z (3 months ago)
- Language: Makefile
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Makefile to convert NHGIS shapfiles for CartoDB
[NHGIS](https://www.nhgis.org/) is awesome for providing high quality shapefiles keyed to each U.S. Census. But these are too high-resolution and in the wrong projection to upload to [CartoDB](https://cartodb.com/), which is often useful for teaching. This is a Makefile which will convert those NHGIS shapefiles into a format that you can use in CartoDB.
Make sure you have the geospatial tools you need. On a Mac:
```
brew install gdal
brew install node
npm -g install mapshaper
```On Ubuntu:
```
sudo apt-get install gdal-bin
sudo apt-get install node npm
sudo npm -g install mapshaper
```Then download all the NGHIS shapefiles that you want, including unzipping the zip files for individual shapefiles. In other words, all the `*.shp`, `*.dbf`, `*.prj` etc., etc., etc., from NHGIS go in the same directory as this Makefile.
Then run `make` and you'll get a directory `simplified` with the simplified shapefiles and `cartodb` with zipfiles of those simplified shapefiles that you can upload to CartoDB.