Smooth linestrings - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: Smooth linestrings (/thread-2001.html) |
Smooth linestrings - dusca - Feb-10-2017 Hello, Theres any algoritm to get smooth linestring coordinates (red line) from original linestring coordinates (green line)??? See image, please: http://imgur.com/fDhBQkk Thanks RE: Smooth linestrings - micseydel - Feb-10-2017 This doesn't seem to be Python-specific. Are you aware of, generally, an algorithm that you could try implementing in Python? RE: Smooth linestrings - ichabod801 - Feb-10-2017 Those look to be Bezier curves. A web search on "python bezier curves" comes up with a few items on Stack Overflow showing how to implement them with NumPy and SciPy. RE: Smooth linestrings - Ofnuts - Feb-10-2017 Yes, there are algorithms to smooth Bezier curves: https://www.particleincell.com/2012/bezier-splines/ http://www.math.ucla.edu/~baker/java/hoefer/Spline.htm |