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
de7b2334
Commit
de7b2334
authored
May 05, 2016
by
Christian Ledermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44 from hyperknot/raise-nogeom
raise error and debug log for no geometries found case
parents
f45883fa
f6bd1cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
fastkml/kml.py
fastkml/kml.py
+3
-0
No files found.
fastkml/kml.py
View file @
de7b2334
...
...
@@ -1095,7 +1095,10 @@ class Placemark(_Feature):
geom
.
from_element
(
multigeometry
)
self
.
_geometry
=
geom
return
logger
.
warn
(
'No geometries found'
)
logger
.
debug
(
u'Problem with element: {}'
.
format
(
etree
.
tostring
(
element
)))
raise
ValueError
(
'No geometries found'
)
def
etree_element
(
self
):
element
=
super
(
Placemark
,
self
).
etree_element
()
...
...
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