https://github.com/slachiewicz/nepal-damage-analysis
https://github.com/slachiewicz/nepal-damage-analysis
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slachiewicz/nepal-damage-analysis
- Owner: slachiewicz
- License: mit
- Fork: true (morganherlocker/nepal-damage-analysis)
- Created: 2016-08-12T21:48:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-29T15:48:33.000Z (about 11 years ago)
- Last Synced: 2024-10-02T09:58:37.938Z (over 1 year ago)
- Language: JavaScript
- Size: 30.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nepal-damage-analysis
Use [Turf](http://turfjs.org/), [TileReduce](https://github.com/mapbox/tile-reduce), and [seisomological data from the USGS](http://earthquake.usgs.gov/earthquakes/shakemap/global/shake/20002926/) to calculate approximate impact levels for each building and road in OpenStreetMap.
To run analysis:
```sh
git clone https://github.com/morganherlocker/nepal-damage-analysis
cd nepal-damage-analysis
npm install
node conflate/index.js
```
This will create roads.geojson and buildings.geojson files in ./data. These large geojson files can be sent through [tippecanoe](https://github.com/mapbox/tippecanoe) for creating vector tile datasets.
```sh
cd data
cat buildings.geojson | tippecanoe -o buildings.mbtiles
cat roads.geojson | tippecanoe -o roads.mbtiles
```
Processing the entire impact area will take several hours on a typical laptop, so a large multicore ec2 is recommended.