From 077f7ea72ba38790bf030d3181c44787fef953b6 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 6 Aug 2019 04:42:48 +0200 Subject: add Troubleshoot extension (#465) adds an extension to help you understand what's wrong with an object and how to fix it, e.g. "invalid" fill shapes --- lib/utils/geometry.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/utils/geometry.py') diff --git a/lib/utils/geometry.py b/lib/utils/geometry.py index 05cfc4b2..647636c8 100644 --- a/lib/utils/geometry.py +++ b/lib/utils/geometry.py @@ -128,3 +128,7 @@ class Point: def __len__(self): return 2 + + +def line_string_to_point_list(line_string): + return [Point(*point) for point in line_string.coords] -- cgit v1.2.3