[OWSLib-users] Handling "AND", "OR" and "NOT" in CSW

Signell, Richard rsignell at usgs.gov
Fri Feb 14 08:27:08 PST 2014


If I query via a user interface on a geoportal server that has a CSW
interface, such as www.nodc.noaa.gov/geoportal, I can search on

(roms OR hycom) AND pacioos NOT regridded

but how can I do this using OWSLib CSW?

I see here
https://github.com/geopython/OWSLib/blob/master/owslib/fes.py#L130
that you can do:

                       [a,b,c]
                       a || b || c

                       [[a,b,c]]
                       a && b && c

                       [[a,b],[c],[d],[e]] or [[a,b],c,d,e]
                       (a && b) || c || d || e

but I couldn't figure out how to do

(a || b ) && (c) && !d

Thanks,
Rich
-- 
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598


More information about the OWSLib-users mailing list