Karl Skretting, University of Stavanger.
Contents on this page: | Relevant papers and links to other pages: |
---|---|
|
This page may be of interest to readers working on problems where a set of points needs to be approximated by a smaller number of straight line segments. The example problems are solved using Python.
The content was originally developed in connection with a presentation I gave at the NOBIM conference in Tromsø in June 2023. Since then, only minor updates have been made. Although I had intended to expand on this work, that plan was never fully realized—so you’ll find several “more to be inserted here” placeholders throughout the page.
As a start only the functions for Always Forward and Cardinality Constrained Shortest Path (AFCCSP) algorithm are included. These as independent and don't need any of the other Python files I have made, although if you want to use data from gpx-file some other code needs to be included or added.
I hope that I soon will include all files needed for the experiments done and presented at NOBIM conference i Tromsø June 2023.
funAFCCSP.py | Functions for Always Forward and Cardinality Constrained Shortest Path algorithm. |
testAFCCSP.py | Functions that test and demonstrate functions in funAFCCSP.py. |
py_fun_and_test.zip | A zip-file containing, among several Python-files, funMyTools.py |
clsLineApprox.py | Mainly the class LineApprox |
testLineApprox.py | Functions that test and demonstrate clsLineApprox.py. |
testLineApproxOnGpx.py | Functions that test and demonstrate clsLineApprox.py using GPX data file. |
testAustralia.py | Functions that test and demonstrate clsLineApprox.py using Australia contour. |
australia.gif | Image file used in testAustralia.py. |
australiaThin.gif | Image file used in testAustralia.py. |
Last update: July 4th, 2025. Karl Skretting | Visit my home page. |