A port of simplify.js (https://github.com/mourner/simplify-js)
Latest commit a3371c2 Aug 21, 2012 Omar Estrella Fix typo
Failed to load latest commit information.
.gitignore Initial commit Apr 18, 2012
README.md Fix typo Aug 21, 2012
simplify.py Updated readme; code cleanup (pep8) Aug 20, 2012



simplify.py is a simple port of simplify.js by Vladimir Agafonkin (https://github.com/mourner/simplify-js)


import simplify
simplify(points, tolerance, highQuality)

points: An array of dictionaries, containing x, y coordinates: {'x': int/float, 'y': int/float}

tolerance (optional, 0.1 by default): Affects the amount of simplification that occurs (the smaller, the less simplification).

highestQuality (optional, True by default): Flag to exclude the distance pre-processing. Produces higher quality results, but runs slower.