rdp
rdp copied to clipboard
Python/Numpy implementation of the Ramer-Douglas-Peucker algorithm
The current `pldist` function returns the distance between a point and the infinte line generated by two other points (i.e the distance to the orthogonal projection), which is incorrect. It...
https://github.com/cubao/pybind11-rdp It's much faster than python version.
The link to https://0x0b.de/the-ramer-douglas-peucker-algorithm.html redirects to https://hirschmann.blog/. Not sure if this is gone, or the blog post is rehosted in a hidden url on your new blog now.
This code works MUCH faster. It does not use for loop, instead it uses numpy vectorization ```python import numpy as np def line_dists(points, start, end): if np.all(start == end): return...
Python: 3.9 RDP: 0.8 Minor issue, in rdp constructor the epsilon by default is 0, which makes pylance interpret it as an int type.
I wanted to add a geographic distance, living near 40N, there is some reason for this. Secondly, I wanted it to go faster as I'm looking at hundreds of tracks...
I have a dataframe which I want to reduce the number of points of every feature, This is my dataframe | recency | frequency | money -- | -- |...
The `simplify_coords` function, which uses the RDP algorithm, causes my script to abruptly (and silently) exit under both 0.3.9 and 0.4.4 (the two versions I tested). It was passed a...
Dear all, is there a way to limit number of simplified points together with max distance (epsilon)? Or to be more precise, to pick only subset of N the most...
I hope that these changes add type hints to the package so that modern IDEs and mypy can pick those up. Should also fix #15 (please squash-merge if you want...