Python Forum

Full Version: Smooth linestrings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Theres any algoritm to get smooth linestring coordinates (red line) from original linestring coordinates (green line)???

See image, please:

This doesn't seem to be Python-specific. Are you aware of, generally, an algorithm that you could try implementing in Python?
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.