Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Advanced Search

tdipisa edited this page Oct 11, 2012 · 1 revision

Advanced Search

Checking the Avanced Search option you can expand the Advanced Search Panel and therefore use the filters defined inside it.

Advanced search allows to filter records returned from the CSW by:

  • temporal extent
  • configured bounding box
  • configured Dublin Core field

The bounding box and the Dublin core field are configured in options passed on the creation of the main panel. Checking the bounding box checkbox you can filter records for that zone.

Advanced search

Example

For these parameters in Advanced Search panel

Advanced Text Example

and the configured BBOX: (-13 10) (-10, 13) application perform HTTP POST request with this payload:

<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" 
				service="CSW"
				version="2.0.2"
				resultType="results"
				outputFormat="application/xml"
				outputSchema="http://www.opengis.net/cat/csw/2.0.2"
				startPosition="1"
				maxRecords="10">
   <csw:Query typeNames="csw:Record">
	  <csw:ElementSetName>full</csw:ElementSetName>
	  <csw:Constraint version="1.1.0">
		 <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
			<ogc:And>
			   <ogc:PropertyIsEqualTo matchCase="false">
				  <ogc:PropertyName>title</ogc:PropertyName>
				  <ogc:Literal>Soil</ogc:Literal>
			   </ogc:PropertyIsEqualTo>
			   <ogc:BBOX>
				  <ogc:PropertyName>ows:BoundingBox</ogc:PropertyName>
				  <gml:Envelope xmlns:gml="http://www.opengis.net/gml">
					 <gml:lowerCorner>-13 10</gml:lowerCorner>
					 <gml:upperCorner>-10 13</gml:upperCorner>
				  </gml:Envelope>
			   </ogc:BBOX>
			   <ogc:PropertyIsGreaterThanOrEqualTo>
				  <ogc:PropertyName>tempExtentBegin</ogc:PropertyName>
				  <ogc:Literal>2011-12-16T00:00:00Z</ogc:Literal>
			   </ogc:PropertyIsGreaterThanOrEqualTo>
			   <ogc:PropertyIsLessThanOrEqualTo>
				  <ogc:PropertyName>tempExtentEnd</ogc:PropertyName>
				  <ogc:Literal>2011-12-30T23:59:59Z</ogc:Literal>
			   </ogc:PropertyIsLessThanOrEqualTo>
			</ogc:And>
		 </ogc:Filter>
	  </csw:Constraint>
   </csw:Query>
</csw:GetRecords>
Clone this wiki locally