Hi list,
I've just gotten the latest from SVN trunk, and tried again an OR search on two IDs. It should bring back both items, since if I do each one separately, it brings back the correct record.
<csw:GetRecords service="CSW" version="2.0.2" resultType="results" outputSchema="csw:IsoRecord" maxRecords="1000" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc">
<or>
<PropertyIsEqualTo>
<PropertyName>AnyText</PropertyName>
<Literal>0fe48cb2-638c-4b82-aecb-8e5372103df6</Literal>
</PropertyIsEqualTo>
<PropertyIsEqualTo>
<PropertyName>AnyText</PropertyName>
<Literal>f7684b5c-a512-4f6c-8df3-939382a2a7b4</Literal>
</PropertyIsEqualTo>
</or>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Perhaps I'm not phrasing this correctly?
Thanks for your help,
Roger
Hi Roger,
On Mon, Jun 22, 2009 at 1:38 PM, Roger Bedell <sylvanascent@anonymised.com>wrote:
Hi list,
I've just gotten the latest from SVN trunk, and tried again an OR search on
two IDs. It should bring back both items, since if I do each one separately,
it brings back the correct record.
<csw:GetRecords service="CSW" version="2.0.2" resultType="results"
outputSchema="csw:IsoRecord" maxRecords="1000" xmlns:csw="
http://www.opengis.net/cat/csw/2.0.2">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc">
<or>
<PropertyIsEqualTo>
<PropertyName>AnyText</PropertyName>
<Literal>0fe48cb2-638c-4b82-aecb-8e5372103df6</Literal>
</PropertyIsEqualTo>
<PropertyIsEqualTo>
<PropertyName>AnyText</PropertyName>
<Literal>f7684b5c-a512-4f6c-8df3-939382a2a7b4</Literal>
</PropertyIsEqualTo>
</or>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Perhaps I'm not phrasing this correctly?
Regarding the Filter Encoding specification you need to respect case for
operators.
Your request should work using the operator "Or" instead of "or".
Cheers,
Mathieu
Mathieu,
How embarrassing - Yes that was the problem. "Or" not "or".
Roger
From: Mathieu Coudert
Sent: Monday, June 22, 2009 4:38 PM
To: Roger Bedell
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Or search only returns one, when it should return two.
Hi Roger,
On Mon, Jun 22, 2009 at 1:38 PM, Roger Bedell <sylvanascent@anonymised.com> wrote:
Hi list,
I've just gotten the latest from SVN trunk, and tried again an OR search on two IDs. It should bring back both items, since if I do each one separately, it brings back the correct record.
<csw:GetRecords service="CSW" version="2.0.2" resultType="results" outputSchema="csw:IsoRecord" maxRecords="1000" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc">
<or>
<PropertyIsEqualTo>
<PropertyName>AnyText</PropertyName>
<Literal>0fe48cb2-638c-4b82-aecb-8e5372103df6</Literal>
</PropertyIsEqualTo>
<PropertyIsEqualTo>
<PropertyName>AnyText</PropertyName>
<Literal>f7684b5c-a512-4f6c-8df3-939382a2a7b4</Literal>
</PropertyIsEqualTo>
</or>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Perhaps I'm not phrasing this correctly?
Regarding the Filter Encoding specification you need to respect case for operators.
Your request should work using the operator "Or" instead of "or".
Cheers,
Mathieu
I am trying to test harvesting via CSW using GeoNetwork and it seems to
throw an error when connecting to ArcIMS 9.2 servers, e.g.
http://geodata.epa.gov/aimscsw/csw2.0?request=GetCapabilities&version=2.0.0&
service=CSW
gives me an exception - the error message, while extremely verbose, is very
spammy and contains apparently-non-relevant information making it hard to
pick out what the real problem is... Hitting the URL directly shows that
the AIMS server does give what appears to be a valid response.
Any thoughts?
David G. Smith PE PLS
Synergist Technology Group, Inc.
570.280.6763