Skip to content

Commit 1e9a185

Browse files
authored
updated namespace kml.save_to_kml and tests for kml (#2875)
1 parent 8193500 commit 1e9a185

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

mslib/plugins/io/kml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def save_to_kml(filename, name, waypoints):
3232
if not filename:
3333
raise ValueError("filename to save flight track cannot be None")
3434
header = f"""<?xml version="1.0" encoding="UTF-8" ?>
35-
<kml xmlns="http://earth.google.com/kml/2.2">
35+
<kml xmlns="http://www.opengis.net/kml/2.2">
3636
<Document>
3737
<name>{name}</name>
3838
<open>1</open>

tests/_test_plugins/test_io_kml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_save_to_kml():
4040
with open(filename) as f:
4141
data = f.readlines()
4242
assert data == ['<?xml version="1.0" encoding="UTF-8" ?>\n',
43-
'<kml xmlns="http://earth.google.com/kml/2.2">\n',
43+
'<kml xmlns="http://www.opengis.net/kml/2.2">\n',
4444
'<Document>\n',
4545
'<name>testkmldata</name>\n',
4646
'<open>1</open>\n',

tests/data/features.kml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<kml xmlns="http://earth.google.com/kml/2.2">
2+
<kml xmlns="http://www.opengis.net/kml/2.2">
33
<Document>
44
<name>D-ADLR Flight Path for SOUTHTRACK flight adlr_20190909a</name>
55
<open>1</open>

tests/data/line.kml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<kml xmlns="http://earth.google.com/kml/2.0"> <Document>
2+
<kml xmlns="http://www.opengis.net/kml/2.2"> <Document>
33

44
<Placemark>
55
<LineString>

0 commit comments

Comments
 (0)