Skip to content

Instantly share code, notes, and snippets.


André Kruger AndreLester

  • Private
  • Swellendam, South Africa
View GitHub Profile
View CDT.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
AndreLester /
Last active Oct 2, 2021
Fast concave hull implementation in Python.
Copyright (C) 2018 Andre Lester Kruger is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
AndreLester / Line
Last active Sep 15, 2015
Create lines using a point from a shapefile and getting the ID's and angles from a CSV file
View Line
import math
from qgis.core import QgsFeature
pointLayerName = "point" #change to whatever name of point layer is
lineLayerName = "lines" #change to whatever name of line layer is
#be sure to draw one point, leave line layer empty
#find layer objects by name
layers = QgsMapLayerRegistry.instance().mapLayers()