Merge tag 'v6.59' into develop
hotfix KML processing
This commit is contained in:
@@ -108,7 +108,7 @@ def crewnerdcourse(doc):
|
|||||||
description = course.findall('.//opengis:description',ns)[0].text
|
description = course.findall('.//opengis:description',ns)[0].text
|
||||||
except IndexError:
|
except IndexError:
|
||||||
description = ''
|
description = ''
|
||||||
|
|
||||||
polygonpms = course.findall('.//opengis:Placemark[opengis:Polygon]',ns)
|
polygonpms = course.findall('.//opengis:Placemark[opengis:Polygon]',ns)
|
||||||
polygons = get_polygons(polygonpms)
|
polygons = get_polygons(polygonpms)
|
||||||
|
|
||||||
@@ -151,7 +151,11 @@ def get_polygons(polygonpms):
|
|||||||
def kmltocourse(f):
|
def kmltocourse(f):
|
||||||
doc = et.parse(f)
|
doc = et.parse(f)
|
||||||
courses = doc.findall('.//opengis:Folder[opengis:Placemark]',ns)
|
courses = doc.findall('.//opengis:Folder[opengis:Placemark]',ns)
|
||||||
|
|
||||||
|
if not courses:
|
||||||
|
courses = doc.findall('.//opengis:Placemark',ns)
|
||||||
|
|
||||||
|
|
||||||
if courses:
|
if courses:
|
||||||
return crewnerdcourse(courses)
|
return crewnerdcourse(courses)
|
||||||
|
|
||||||
|
|||||||
@@ -123,11 +123,13 @@
|
|||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Open Google Earth</li>
|
<li>Open Google Earth</li>
|
||||||
|
<li>Create a folder "Courses" under "Temporary Places" or under "My Places"</li>
|
||||||
|
<li>Create a folder for each Course under "Courses", and for each course:</li>
|
||||||
<li>Create Start polygon</li>
|
<li>Create Start polygon</li>
|
||||||
<li>Optional: Create First "must row through" polygon</li>
|
<li>Optional: Create First "must row through" polygon</li>
|
||||||
<li>Optional: Create subsequent "must row through" polygons</li>
|
<li>Optional: Create subsequent "must row through" polygons</li>
|
||||||
<li>Create Finish polygon</li>
|
<li>Create Finish polygon</li>
|
||||||
<li>Save Place as KML file</li>
|
<li>Save "Courses" as KML file</li>
|
||||||
<li>Upload the file to rowsandall.com using the "Add Courses" button</li>
|
<li>Upload the file to rowsandall.com using the "Add Courses" button</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user