-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix parse of nested multiple binary ops (#782)
- Loading branch information
1 parent
1b26601
commit 80651eb
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...functionaltests/suites/default/expected/post_GetRecords-filter-and-nested-or-multiple.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!-- PYCSW_VERSION --> | ||
<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.2" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"> | ||
<csw:SearchStatus timestamp="PYCSW_TIMESTAMP"/> | ||
<csw:SearchResults numberOfRecordsMatched="1" numberOfRecordsReturned="1" nextRecord="0" recordSchema="http://www.opengis.net/cat/csw/2.0.2" elementSet="full"> | ||
<csw:Record> | ||
<dc:identifier>urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63</dc:identifier> | ||
<dc:type>http://purl.org/dc/dcmitype/Dataset</dc:type> | ||
<dc:title>Mauris sed neque</dc:title> | ||
<dc:subject scheme="http://www.digest.org/2.1">Vegetation-Cropland</dc:subject> | ||
<dct:abstract>Curabitur lacinia, ante non porta tempus, mi lorem feugiat odio, eget suscipit eros pede ac velit.</dct:abstract> | ||
<dc:date>2006-03-26</dc:date> | ||
<ows:BoundingBox crs="urn:x-ogc:def:crs:EPSG:6.11:4326"> | ||
<ows:LowerCorner>47.595 -4.097</ows:LowerCorner> | ||
<ows:UpperCorner>51.217 0.889</ows:UpperCorner> | ||
</ows:BoundingBox> | ||
</csw:Record> | ||
</csw:SearchResults> | ||
</csw:GetRecordsResponse> |
32 changes: 32 additions & 0 deletions
32
tests/functionaltests/suites/default/post/GetRecords-filter-and-nested-or-multiple.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<GetRecords service="CSW" version="2.0.2" maxRecords="10" resultType="results" xmlns="http://www.opengis.net/cat/csw/2.0.2" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"> | ||
<Query typeNames="csw:Record"> | ||
<ElementSetName>full</ElementSetName> | ||
<Constraint version="1.0.0"> | ||
<ogc:Filter> | ||
<ogc:And> | ||
<ogc:Or> | ||
<ogc:PropertyIsEqualTo> | ||
<ogc:PropertyName>dc:type</ogc:PropertyName> | ||
<ogc:Literal>http://purl.org/dc/dcmitype/Image</ogc:Literal> | ||
</ogc:PropertyIsEqualTo> | ||
<ogc:PropertyIsEqualTo> | ||
<ogc:PropertyName>dc:type</ogc:PropertyName> | ||
<ogc:Literal>http://purl.org/dc/dcmitype/Dataset</ogc:Literal> | ||
</ogc:PropertyIsEqualTo> | ||
</ogc:Or> | ||
<ogc:Or> | ||
<ogc:PropertyIsLike wildCard="%" singleChar="_" escapeChar="\"> | ||
<ogc:PropertyName>dc:title</ogc:PropertyName> | ||
<ogc:Literal>Mauris%</ogc:Literal> | ||
</ogc:PropertyIsLike> | ||
<ogc:PropertyIsLike wildCard="%" singleChar="_" escapeChar="\"> | ||
<ogc:PropertyName>dc:title</ogc:PropertyName> | ||
<ogc:Literal>%neque</ogc:Literal> | ||
</ogc:PropertyIsLike> | ||
</ogc:Or> | ||
</ogc:And> | ||
</ogc:Filter> | ||
</Constraint> | ||
</Query> | ||
</GetRecords> |