AIFDR / riab

Risk in a Box - main project
Other
17 stars 6 forks source link

Use OWSLIB for retrieval of all metadata #115

Closed uniomni closed 13 years ago

uniomni commented 13 years ago

Currently bounding box is retrieved by the function get_ows_metadata. However, metadata for plugins is done with code based on OWSLIB in impact/utilities. The latter should be replaced by the former.

However, OWSLIB WFS does not capture keywords, so we need to submit the following patch to upstream:

In wfs100.py class ContentMetadata constructor:

Get keywords

    self.keywords = [f.text for f in elem.findall(nspath('Keywords'))]
uniomni commented 13 years ago

The new function was started in response to issue #95 and was extended in commit f469e96c9faba576b427a786195ab1a484126376 to 34c655a18c6e5a0557be8bc64b63894a217c1bf8

uniomni commented 13 years ago

This is the diff 337a338,340

    # GET KEYWORDS
    self.keywords = [f.text for f in elem.findall(nspath('Keywords'))]
uniomni commented 13 years ago

And here's the patch using unified diff

--- /home/nielso/dev_work_2june/riab_env/src/owslib/owslib/feature/wfs100.py 2011-08-09 10:01:47.805514966 +0700 +++ wfs100.py 2011-08-14 15:15:10.247201003 +0700 @@ -335,6 +335,9 @@

crs options

     self.crsOptions = [srs.text for srs in elem.findall(nspath('SRS'))]