From ca8e587496c7680553a3c7d4621aa4e92a6247e3 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 29 Sep 2020 21:16:30 +0200 Subject: [PATCH] correct processing of courses as Doc (vs Folder) --- rowers/courses.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rowers/courses.py b/rowers/courses.py index 20e709e1..7605db85 100644 --- a/rowers/courses.py +++ b/rowers/courses.py @@ -158,7 +158,9 @@ def kmltocourse(f): courses = doc.findall('.//opengis:Folder[opengis:Placemark]',ns) if not courses: - courses = doc.findall('.//opengis:Placemark',ns) + courses = doc.findall('.//opengis:Document[opengis:Placemark]',ns) + if not courses: + courses = doc.findall('.//opengis:Placemark',ns) if courses: return crewnerdcourse(courses)