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
6785bf28
Commit
6785bf28
authored
Apr 28, 2016
by
heltonbiker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function documentation
parent
d0ca4ef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
examples/UsageExamples.py
examples/UsageExamples.py
+3
-2
No files found.
examples/UsageExamples.py
View file @
6785bf28
...
...
@@ -3,7 +3,8 @@
from
fastkml
import
kml
def
print_child_features
(
element
):
def
print_child_features
(
element
):
""" Prints the name of every child node of the given element, recursively """
if
not
getattr
(
element
,
'features'
,
None
):
return
for
feature
in
element
.
features
():
...
...
@@ -19,4 +20,4 @@ if __name__ == '__main__':
with
open
(
fname
)
as
kmlFile
:
k
.
from_string
(
kmlFile
.
read
())
print_child_features
(
k
)
\ No newline at end of file
print_child_features
(
k
)
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