[owslib-devel] WFS 1.1.0
sredl at ccss.cz
sredl at ccss.cz
Thu Nov 3 07:15:23 PDT 2011
Hi Tom,
thank you very much for WFS 1.1.0. I have fixed two small bugs (see the
patch below).
Here:
http://sourceforge.net/apps/trac/owslib/browser/trunk/owslib/feature/wfs110.py#L222
the BoundingBox wouldn't find the lower and upper corner as it wouldn't
know the proper namespace.
And just a typo here:
http://sourceforge.net/apps/trac/owslib/browser/trunk/owslib/feature/wfs110.py#L242
Hope that helps. Thank you again,
Michal
Index: wfs110.py
===================================================================
--- wfs110.py (revision 1763)
+++ wfs110.py (working copy)
@@ -219,7 +219,7 @@
# bbox
self.boundingBoxWGS84 = None
- b = BoundingBox(elem.find(nspath_eval('ows:WGS84BoundingBox',
namespaces)))
+ b = BoundingBox(elem.find(nspath_eval('ows:WGS84BoundingBox',
namespaces)), namespaces['ows'])
if b is not None:
self.boundingBoxWGS84 = (
float(b.minx), float(b.miny),
@@ -239,7 +239,7 @@
# MetadataURLs
self.metadataUrls = []
- for m in elem.findall(nspath('MetadataURL')):
+ for m in elem.findall(util.nspath('MetadataURL')):
metadataUrl = {
'type': testXMLValue(m.attrib['type'], attrib=True),
'format': testXMLValue(m.find('Format')),
More information about the OWSLib-devel
mailing list