Ramer-Douglas-Peucker line simplification: Difference between revisions

→‎{{header|Python}}: add lib header for Shapely
m (→‎{{header|zkl}}: Fix link: Perl 6 --> Raku)
(→‎{{header|Python}}: add lib header for Shapely)
Line 1,013:
 
=={{header|Python}}==
{{libheader|Shapely}}
An approach using the shapely library:
 
<lang python>from __future__ import print_function
from shapely.geometry import LineString