Skip to content

Commit fcf94df

Browse files
committed
Issue #56.
1 parent 99f19d7 commit fcf94df

File tree

3 files changed

+153
-1
lines changed

3 files changed

+153
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
var data = {
2+
"csw:GetRecords" : { "maxRecords" : 10, "resultType" : "results", "service" : "CSW", "version" : "2.0.2",
3+
"abstractQuery" : {
4+
"csw:Query" : { "typeNames" : [ "csw:Record", ],
5+
"elementSetName" : "full",
6+
"constraint" : { "version" : "1.1.0",
7+
"filter" : {
8+
"ogc:Filter" : {
9+
"logicOps" : {
10+
"ogc:And" : {
11+
"comparisonOpsOrSpatialOpsOrLogicOps" : [ {
12+
"ogc:BBOX" : {
13+
"propertyName" : "ows:BoundingBox",
14+
"envelope" : {
15+
"gml:Envelope" : { "srsName" : "urn:x-ogc:def:crs:EPSG:6.11:4326",
16+
"lowerCorner" : [ -80, 150 ],
17+
"upperCorner" : [ 80, -150 ]
18+
}
19+
}
20+
}
21+
}, {
22+
"ogc:PropertyIsLike" : { "escapeChar" : "\\", "singleChar" : "_", "wildCard" : "%",
23+
"propertyName" : "dc:title",
24+
"literal" : [ "%WATER DEPTH%" ]
25+
}
26+
} ]
27+
}
28+
}
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}
35+
};
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
var data = {
2+
"name" : {
3+
"namespaceURI" : "http://www.opengis.net/cat/csw/2.0.2",
4+
"localPart" : "GetRecords",
5+
"prefix" : "csw"
6+
},
7+
"value" : {
8+
"maxRecords" : 10,
9+
"resultType" : "results",
10+
"service" : "CSW",
11+
"version" : "2.0.2",
12+
"abstractQuery" : {
13+
"name" : {
14+
"namespaceURI" : "http://www.opengis.net/cat/csw/2.0.2",
15+
"localPart" : "Query",
16+
"prefix" : "csw"
17+
},
18+
"value" : {
19+
"typeNames" : [ 'csw:Record', ],
20+
"elementSetName" : {
21+
"value" : "full"
22+
},
23+
"constraint" : {
24+
"version" : "1.1.0",
25+
"filter" : {
26+
"name" : {
27+
"namespaceURI" : "http://www.opengis.net/ogc",
28+
"localPart" : "Filter",
29+
"prefix" : "ogc"
30+
},
31+
"value" : {
32+
"logicOps" : {
33+
"name" : {
34+
"namespaceURI" : "http://www.opengis.net/ogc",
35+
"localPart" : "And",
36+
"prefix" : "ogc"
37+
},
38+
"value" : {
39+
"comparisonOpsOrSpatialOpsOrLogicOps" : [ {
40+
"name" : {
41+
"namespaceURI" : "http://www.opengis.net/ogc",
42+
"localPart" : "BBOX",
43+
"prefix" : "ogc"
44+
},
45+
"value" : {
46+
"propertyName" : {
47+
"content" : "ows:BoundingBox"
48+
},
49+
"envelope" : {
50+
"name" : {
51+
"namespaceURI" : "http://www.opengis.net/gml",
52+
"localPart" : "Envelope",
53+
"prefix" : "gml"
54+
},
55+
"value" : {
56+
"srsName" : "urn:x-ogc:def:crs:EPSG:6.11:4326",
57+
"lowerCorner" : {
58+
"value" : [ -80, 150 ]
59+
},
60+
"upperCorner" : {
61+
"value" : [ 80, -150 ]
62+
}
63+
}
64+
}
65+
}
66+
}, {
67+
"name" : {
68+
"namespaceURI" : "http://www.opengis.net/ogc",
69+
"localPart" : "PropertyIsLike",
70+
"prefix" : "ogc"
71+
},
72+
"value" : {
73+
"escapeChar" : "\\",
74+
"singleChar" : "_",
75+
"wildCard" : "%",
76+
"propertyName" : {
77+
"content" : "dc:title"
78+
},
79+
"literal" : {
80+
"content" : [ "%WATER DEPTH%" ]
81+
}
82+
}
83+
} ]
84+
}
85+
}
86+
}
87+
}
88+
}
89+
}
90+
}
91+
}
92+
};

fiddles/yq8x0oqf/GetRecords.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
<?xml version="1.0" encoding="UTF-8"?> <csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns="http://www.occamlab.com/ctl" xmlns:ctl="http://www.occamlab.com/ctl" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:p="http://teamengine.sourceforge.net/parsers" xmlns:parsers="http://www.occamlab.com/te/parsers" xmlns:saxon="http://saxon.sf.net/" xmlns:te="http://www.occamlab.com/te" xmlns:tec="java:com.occamlab.te.TECore" xmlns:tems="java:com.occamlab.te.web.MonitorServlet" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" maxRecords="10" resultType="results" service="CSW" version="2.0.2"><csw:Query typeNames="csw:Record"><csw:ElementSetName>full</csw:ElementSetName><csw:Constraint version="1.1.0"><ogc:Filter><ogc:And><ogc:BBOX><ogc:PropertyName>ows:BoundingBox</ogc:PropertyName><gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:6.11:4326"><gml:lowerCorner>-80.0 150.0</gml:lowerCorner><gml:upperCorner>80.0 -150.0</gml:upperCorner></gml:Envelope></ogc:BBOX><ogc:PropertyIsLike escapeChar="\" singleChar="_" wildCard="%"><ogc:PropertyName>dc:title</ogc:PropertyName><ogc:Literal>%WATER DEPTH%</ogc:Literal></ogc:PropertyIsLike></ogc:And></ogc:Filter></csw:Constraint></csw:Query></csw:GetRecords>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
3+
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
4+
maxRecords="10" resultType="results" service="CSW" version="2.0.2">
5+
<csw:Query typeNames="csw:Record">
6+
<csw:ElementSetName>full</csw:ElementSetName>
7+
<csw:Constraint version="1.1.0">
8+
<ogc:Filter>
9+
<ogc:And>
10+
<ogc:BBOX>
11+
<ogc:PropertyName>ows:BoundingBox</ogc:PropertyName>
12+
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:6.11:4326">
13+
<gml:lowerCorner>-80.0 150.0</gml:lowerCorner>
14+
<gml:upperCorner>80.0 -150.0</gml:upperCorner>
15+
</gml:Envelope>
16+
</ogc:BBOX>
17+
<ogc:PropertyIsLike escapeChar="\" singleChar="_"
18+
wildCard="%">
19+
<ogc:PropertyName>dc:title</ogc:PropertyName>
20+
<ogc:Literal>%WATER DEPTH%</ogc:Literal>
21+
</ogc:PropertyIsLike>
22+
</ogc:And>
23+
</ogc:Filter>
24+
</csw:Constraint>
25+
</csw:Query>
26+
</csw:GetRecords>

0 commit comments

Comments
 (0)