Skip to content

WfsBroker methods to accept OgcExpression filters not XML#211

Closed
mhidas wants to merge 7 commits into
broker-refactorfrom
wfs_ogc_filter
Closed

WfsBroker methods to accept OgcExpression filters not XML#211
mhidas wants to merge 7 commits into
broker-refactorfrom
wfs_ogc_filter

Conversation

@mhidas
Copy link
Copy Markdown
Contributor

@mhidas mhidas commented May 19, 2020

When querying WFS, we construct filters using owslib.fes.OgcExpression objects. We only need to convert them to XML when we send the getFeature request. So I think this should just be done "under the hood" automatically, rather than requiring the hanlder to do it (e.g. here).
Also, I think the use of ogc_filter to denote both OgcExpression objects and XML was confusing.

@mhidas
Copy link
Copy Markdown
Contributor Author

mhidas commented May 19, 2020

@lwgordonimos What do you think? Could we add something along these lines to your refactoring PR?

@mhidas mhidas requested a review from a user May 19, 2020 01:48
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2020

Codecov Report

❗ No coverage uploaded for pull request base (broker-refactor@df86fce). Click here to learn what that means.
The diff coverage is 77.77%.

Impacted file tree graph

@@                Coverage Diff                 @@
##             broker-refactor     #211   +/-   ##
==================================================
  Coverage                   ?   90.75%           
==================================================
  Files                      ?       35           
  Lines                      ?     3482           
  Branches                   ?      424           
==================================================
  Hits                       ?     3160           
  Misses                     ?      262           
  Partials                   ?       60           
Impacted Files Coverage Δ
aodncore/util/wfs.py 95.65% <77.77%> (ø)
aodncore/pipeline/log.py 88.23% <0.00%> (ø)
aodncore/util/misc.py 93.60% <0.00%> (ø)
aodncore/common/__init__.py 100.00% <0.00%> (ø)
aodncore/testlib/__init__.py 100.00% <0.00%> (ø)
aodncore/testlib/basetest.py 100.00% <0.00%> (ø)
aodncore/pipeline/watch.py 64.81% <0.00%> (ø)
aodncore/pipeline/steps/harvest.py 98.51% <0.00%> (ø)
aodncore/util/fileops.py 84.45% <0.00%> (ø)
aodncore/pipeline/steps/store.py 93.75% <0.00%> (ø)
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df86fce...2ef5209. Read the comment docs.

@ghost
Copy link
Copy Markdown

ghost commented May 19, 2020

Good ideas. I've added it to the "general client API improvements PR": #209

@ghost ghost force-pushed the broker-refactor branch from e4c0002 to 4eed8f4 Compare July 7, 2020 08:17
@ghost ghost force-pushed the broker-refactor branch from 4eed8f4 to e7b786f Compare September 4, 2020 03:38
@ghost ghost force-pushed the broker-refactor branch from e7b786f to a13bf9d Compare November 4, 2020 06:23
@ghost ghost force-pushed the broker-refactor branch from a13bf9d to 2489daf Compare November 26, 2020 23:34
@ghost ghost force-pushed the broker-refactor branch from 2489daf to 425af6a Compare January 13, 2021 04:00
@mhidas mhidas closed this Jan 14, 2021
@mhidas mhidas deleted the wfs_ogc_filter branch January 14, 2021 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant