Skip to content

milkbread/Visvalingam-Wyatt

Repository files navigation

Visvalingam-Wyatt

=================

Simple Python-Implementation of a famous algorithm

Download the repository:

git clone https://github.com/milkbread/Visvalingam-Wyatt.git

Execute by:

  • 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

View results in browser (exemplary workflow for tests):

  • 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!

Inspired by M.Bostocks JavaScript-Implementation:

About

Simple Python-Implementation of a famous algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages