[owslib-devel] WFS 1.1.0
Tom Kralidis
tomkralidis at hotmail.com
Thu Nov 3 09:04:51 PDT 2011
> Date: Thu, 3 Nov 2011 15:15:23 +0100
> From: sredl at ccss.cz
> To: tomkralidis at hotmail.com
> CC: owslib-devel at lists.sourceforge.net
> Subject: WFS 1.1.0
>
>
> 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')),
>
Thanks Michal for the patch! Applied in r1764.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/owslib-devel/attachments/20111103/b8d7f0ff/attachment.html>
More information about the OWSLib-devel
mailing list