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
6c45b50a
Commit
6c45b50a
authored
Apr 28, 2016
by
heltonbiker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added UsageExamples.py with one example.
parent
48b5f766
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
examples/UsageExamples.py
examples/UsageExamples.py
+25
-0
No files found.
examples/UsageExamples.py
0 → 100644
View file @
6c45b50a
#!/usr/bin/env python
# coding: utf-8
from
fastkml.kml
import
*
def
printChildFeatures
(
element
):
level
=
0
for
feature
in
element
.
features
():
try
:
print
" "
*
level
,
feature
.
name
printChildFeatures
(
feature
)
level
+=
1
except
:
pass
if
__name__
==
'__main__'
:
fname
=
"KML_Samples.kml"
k
=
KML
()
with
open
(
fname
)
as
kmlFile
:
k
.
from_string
(
kmlFile
.
read
())
printChildFeatures
(
k
)
\ No newline at end of file
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