Skip to content
Implementing the Douglas-Peucker line generalisation algorithm in python3
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
code
img
README.md

README.md

Douglas-Peucker Line Generalisation Algorithm

This project implements the Douglas-Peucker line generalisation algorithm in python3.

Content

  • Driver.py – is the driver starting the program.
  • Polylines.py – contains the main algorithm
  • Points.py – contains classes representing point objects
  • PointPlotter.py – plots the points with matplotlib
  • ChainHandler.py – handles data, e.g. loads data

Example Output

Output Wiggle8.txt

Wiggle8.txt generalised with a threshold of 50.0; The black points represent the original point, the red line represent the generalised polyline.

Output Wiggle8.txt

Wiggle8.txt generalised with a threshold of 30.0; The black points represent the original point, the red line represent the generalised polyline.

Output Wiggle4.txt

Wiggle4.txt generalised with a threshold of 50.0; The black points represent the original point, the red line represent the generalised polyline.

You can’t perform that action at this time.