From 368a030f88d8c9becf56a665d3e11fa18c5c2d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 13 Apr 2020 11:24:26 +0300 Subject: [PATCH] commentary --- misc/greedy-points-to-multiline.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/greedy-points-to-multiline.py b/misc/greedy-points-to-multiline.py index e42d62a..da918f5 100755 --- a/misc/greedy-points-to-multiline.py +++ b/misc/greedy-points-to-multiline.py @@ -1,4 +1,12 @@ #!/usr/bin/env python3 +""" +This script takes a point layer and connects them all in a "greedy" way: it +will take a random point, connect its closest one, and repeat the loop until +all of the points are connected. + +This is useful if you have point area boudnaries and want to make a real +connected polygon. +""" import sys import rtree