Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fastkml
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
fastkml
Commits
1a0d7e1b
Commit
1a0d7e1b
authored
Nov 27, 2013
by
Christian Ledermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test that SchemaData is read from kml, bugfix for this
parent
58433799
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
docs/HISTORY.txt
docs/HISTORY.txt
+7
-0
docs/TODO.txt
docs/TODO.txt
+1
-1
fastkml/kml.py
fastkml/kml.py
+2
-2
fastkml/test_main.py
fastkml/test_main.py
+3
-1
No files found.
docs/HISTORY.txt
View file @
1a0d7e1b
...
...
@@ -2,6 +2,13 @@
Changelog
=========
0.6 (unreleased)
----------------
- add Schema
- add SchemaData
- make use of lxmls default namespace
0.5 (2013/10/23)
-----------------
...
...
docs/TODO.txt
View file @
1a0d7e1b
...
...
@@ -2,7 +2,7 @@
To Do
======
-
Schema and Extended Data
-
add untyped custom data with namespace prefix
- Overlays
fastkml/kml.py
View file @
1a0d7e1b
...
...
@@ -1000,9 +1000,9 @@ class ExtendedData(_XMLObject):
el
=
Data
(
self
.
ns
)
el
.
from_element
(
ud
)
self
.
elements
.
append
(
el
)
typed_data
=
element
.
findall
(
'%sS
imple
Data'
%
self
.
ns
)
typed_data
=
element
.
findall
(
'%sS
chema
Data'
%
self
.
ns
)
for
sd
in
typed_data
:
el
=
S
impleData
(
self
.
ns
)
el
=
S
chemaData
(
self
.
ns
,
'dummy'
)
el
.
from_element
(
sd
)
self
.
elements
.
append
(
el
)
...
...
fastkml/test_main.py
View file @
1a0d7e1b
...
...
@@ -484,7 +484,9 @@ class KmlFromStringTestCase( unittest.TestCase ):
self
.
assertTrue
(
'<i>The par for this hole is </i>'
in
extended_data
.
elements
[
1
].
display_name
)
sd
=
extended_data
.
elements
[
2
]
self
.
assertEqual
(
sd
.
data
[
0
][
'name'
],
'TrailHeadName'
)
self
.
assertEqual
(
sd
.
data
[
1
][
'value'
],
'347.45'
)
def
test_polygon
(
self
):
doc
=
"""<kml xmlns="http://www.opengis.net/kml/2.2">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment