Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nestor authored and Rongronggg9 committed May 22, 2022
1 parent 2b93e89 commit f4fdcac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions feedparser/namespaces/georss.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def _parse_srs_attrs(self, attrs_d):
except ValueError:
srs_dimension = 2
context = self._get_context()
if 'where' not in context:
context['where'] = {}
context['where']['srsName'] = srs_name
context['where']['srsDimension'] = srs_dimension

Expand Down
14 changes: 14 additions & 0 deletions tests/illformed/geo/gml_point.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!--
Description: item point where
Expect: entries[0]['where']['type'] == 'Point' and entries[0]['where']['coordinates'] == (31.1732, 36.9382)
-->
<feed
xmlns="http://www.w3.org/2005/Atom"
xmlns:gml="http://www.opengis.net/gml"
>
<entry>
<gml:Point>
<gml:pos>36.9382 31.1732</gml:pos>
</gml:Point>
</entry>
</feed>

0 comments on commit f4fdcac

Please sign in to comment.