Navigation Menu

Skip to content

liviajakob/douglas-peucker-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Implementing the Douglas-Peucker line generalisation algorithm in python3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages