Visvalingam-Wyatt
Simple python implementation of a famous algorithm : the Visvalingam-Wyatt simplification.
Installation
Using pip
$ pip install visvalingam
You can download the source using
git clone https://github.com/milkbread/Visvalingam-Wyatt.git
Examples execution
The whole example is located in the example/ directory
$ cd example
Script usage
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
This is an 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: http://localhost:8888/index.html
If needed adjust the filenames within the example/index.html (lines 24 & 28)
evaluate the resulting data and try another threshold
Impatient to see some results? See the example/index.html here!
Inspired by M.Bostocks JavaScript-Implementation:
Metadata
Release files for visvalingam 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visvalingam-0.3.0.tar.gz | 3.8 kB | Without provenance | Details for visvalingam-0.3.0.tar.gz |
Release files / visvalingam-0.3.0.tar.gz
| Download URL | visvalingam-0.3.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78c49e4c8981735f2b7de78112d0b1374cb5173e7f678ef74f03a7de295ab246
|
|
BLAKE2b-256 checksum How to use checksums |
15d927361b4ba68c523224054f10511fe66d03295c258506881ec2b453bb8af8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for visvalingam 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.