Geography: 8375 : Must test if kml file exists.
This commit is contained in:
parent
03f890f4ad
commit
defdec493e
@ -805,6 +805,7 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
path = media_obj.get_path()
|
path = media_obj.get_path()
|
||||||
name, extension = os.path.splitext(path)
|
name, extension = os.path.splitext(path)
|
||||||
if extension == ".kml":
|
if extension == ".kml":
|
||||||
|
if os.path.isfile(path):
|
||||||
self.kml_layer.add_kml(path)
|
self.kml_layer.add_kml(path)
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user