Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fgregg/streetsample
Population weighted random sample of Chicago street segments
https://github.com/fgregg/streetsample
Last synced: about 1 month ago
JSON representation
Population weighted random sample of Chicago street segments
- Host: GitHub
- URL: https://github.com/fgregg/streetsample
- Owner: fgregg
- Created: 2015-07-10T16:55:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T16:26:19.000Z (over 9 years ago)
- Last Synced: 2024-10-15T09:55:49.498Z (3 months ago)
- Language: Makefile
- Homepage:
- Size: 152 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streetsample
This Makefile builds a shapefile that samples from a cells from Chicago and then selects 30 streets segments randomly, weighed by population# Requirements
- PostGIS
- Python3
- csvkit# To build
Change the database settings in `config.mk.example` and save the modified file as `config.mk`.```bash
> make createdb
> make
```To change the size of the sample use the command line argument `SAMPLE_SIZE`. The default is 30
```bash
> make SAMPLE_SIZE=40
```# To cleanup shapefiles
```bash
> make cleanup_shapefiles
```