Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test invalid gml:posList geometry (#621)
- Loading branch information
1 parent
b5a657e
commit b9e649a
Showing
6 changed files
with
98 additions
and
5 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
25 changes: 25 additions & 0 deletions
25
tests/functionaltests/suites/default/expected/post_GetRecords-filter-bbox-poslist.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,25 @@ | ||
<?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="2" numberOfRecordsReturned="2" nextRecord="0" recordSchema="http://www.opengis.net/cat/csw/2.0.2" elementSet="brief"> | ||
<csw:BriefRecord> | ||
<dc:identifier>urn:uuid:94bc9c83-97f6-4b40-9eb8-a8e8787a5c63</dc:identifier> | ||
<dc:title>Mauris sed neque</dc:title> | ||
<dc:type>http://purl.org/dc/dcmitype/Dataset</dc:type> | ||
<ows:BoundingBox crs="urn:x-ogc:def:crs:EPSG:6.11:4326" dimensions="2"> | ||
<ows:LowerCorner>47.59 -4.1</ows:LowerCorner> | ||
<ows:UpperCorner>51.22 0.89</ows:UpperCorner> | ||
</ows:BoundingBox> | ||
</csw:BriefRecord> | ||
<csw:BriefRecord> | ||
<dc:identifier>urn:uuid:9a669547-b69b-469f-a11f-2d875366bbdc</dc:identifier> | ||
<dc:title>Ñunç elementum</dc:title> | ||
<dc:type>http://purl.org/dc/dcmitype/Dataset</dc:type> | ||
<ows:BoundingBox crs="urn:x-ogc:def:crs:EPSG:6.11:4326" dimensions="2"> | ||
<ows:LowerCorner>44.79 -6.17</ows:LowerCorner> | ||
<ows:UpperCorner>51.13 -2.23</ows:UpperCorner> | ||
</ows:BoundingBox> | ||
</csw:BriefRecord> | ||
</csw:SearchResults> | ||
</csw:GetRecordsResponse> |
7 changes: 7 additions & 0 deletions
7
tests/functionaltests/suites/default/expected/post_GetRecords-filter-invalid-poslist.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!-- PYCSW_VERSION --> | ||
<ows:ExceptionReport 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="1.2.0" language="en-US" xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"> | ||
<ows:Exception exceptionCode="InvalidParameterValue" locator="service"> | ||
<ows:ExceptionText>Invalid Constraint: Invalid Filter request: Invalid number of coordinates in geometry</ows:ExceptionText> | ||
</ows:Exception> | ||
</ows:ExceptionReport> |
21 changes: 21 additions & 0 deletions
21
tests/functionaltests/suites/default/post/GetRecords-filter-bbox-poslist.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,21 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | ||
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" service="CSW" version="2.0.2" resultType="results" startPosition="1" maxRecords="5" outputFormat="application/xml" outputSchema="http://www.opengis.net/cat/csw/2.0.2" 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" xmlns:gml="http://www.opengis.net/gml"> | ||
<csw:Query typeNames="csw:Record"> | ||
<csw:ElementSetName>brief</csw:ElementSetName> | ||
<csw:Constraint version="1.1.0"> | ||
<ogc:Filter> | ||
<ogc:Intersects> | ||
<ogc:PropertyName>ows:BoundingBox</ogc:PropertyName> | ||
<gml:Polygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"> | ||
<gml:exterior> | ||
<gml:LinearRing> | ||
<gml:posList srsDimension="2">47.00 -5.00 55.00 -5.00 55.00 20.00 47.00 20.00 47.00 -5.00</gml:posList> | ||
</gml:LinearRing> | ||
</gml:exterior> | ||
</gml:Polygon> | ||
</ogc:Intersects> | ||
</ogc:Filter> | ||
</csw:Constraint> | ||
</csw:Query> | ||
</csw:GetRecords> | ||
|
26 changes: 26 additions & 0 deletions
26
tests/functionaltests/suites/default/post/GetRecords-filter-invalid-poslist.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,26 @@ | ||
<csw:GetRecords | ||
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" | ||
xmlns:gml="http://www.opengis.net/gml" | ||
xmlns:ogc="http://www.opengis.net/ogc" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ows="http://www.opengis.net/ows" outputSchema="http://www.opengis.net/cat/csw/2.0.2" | ||
outputFormat="application/xml" version="2.0.2" service="CSW" resultType="results" maxRecords="1000" | ||
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"> | ||
<csw:Query typeNames="csw:Record"> | ||
<csw:ElementSetName>full</csw:ElementSetName> | ||
<csw:Constraint version="1.1.0"> | ||
<ogc:Filter> | ||
<ogc:Intersects> | ||
<ogc:PropertyName>ows:BoundingBox</ogc:PropertyName> | ||
<gml:Polygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"> | ||
<gml:exterior> | ||
<gml:LinearRing> | ||
<gml:posList srsDimension="2">11 16 49 17 10 10</gml:posList> | ||
</gml:LinearRing> | ||
</gml:exterior> | ||
</gml:Polygon> | ||
</ogc:Intersects> | ||
</ogc:Filter> | ||
</csw:Constraint> | ||
</csw:Query> | ||
</csw:GetRecords> |