Simple Python-Implementation of a famous algorithm
git clone https://github.com/milkbread/Visvalingam-Wyatt.git
-
Dummy
python simplify.py -i <inFile> -o <outFile> -t <tolerance>
-
Example
python simplify.py -i in.json -o out.json -t 0.0005
-
Help
python simplify.py -h
-
Download the repository
-
Simplify your data
python simplify.py -i in.json -o out.json -t 0.0005
-
setup local server (!necessary for D3.js!)
python -m SimpleHTTPServer 8888
-
open in browser: localhost:8888/index.html
-
On Demand: adjust the filenames within the index.html (lines 24 & 28)
-
evaluate the resulting data and try another threshold
Impacient to see some results? See the index.html here!