Private
Public Access
1
0

correct processing of courses as Doc (vs Folder)

This commit is contained in:
Sander Roosendaal
2020-09-29 21:16:30 +02:00
parent aeaeb44071
commit ca8e587496

View File

@@ -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)