diff --git a/docs/ogc/protocols/examples/ogc-csw-query-examples.md b/docs/ogc/protocols/examples/ogc-csw-query-examples.md index 3907fc4be..9b712cc80 100644 --- a/docs/ogc/protocols/examples/ogc-csw-query-examples.md +++ b/docs/ogc/protocols/examples/ogc-csw-query-examples.md @@ -36,7 +36,7 @@ GET request http://localhost:8080/csw?request=GetCapabilities&service=CSW ``` -## Query by field value +## Query by ***IsEqualTo*** value How to query the catalog by **specific property** and his **value** ```xml POST request @@ -55,8 +55,7 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S full - - + mc:productId @@ -64,21 +63,20 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S MAS_6_ORT - - + ``` -above example declare a query for `mc:productId` field in catalog and response with the full metadata of `MAS_6_ORT match` result. +Above example declare a query for `mc:productId` field in catalog and response with the full metadata of `MAS_6_ORT match` result. `maxRecords` attribute in ``element is equals to "1" means response will contain only 1 result. `startPosition` will display records from all result start from the first one to the `maxRecords` value ***(1 to 1 in example)***. -## Query by ***IsEqualTo*** value +## Query by field value How to query the catalog by **specific property** and his **value** ```xml POST request @@ -97,7 +95,8 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S full - + + mc:productId @@ -105,7 +104,8 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S MAS_6_ORT - + + @@ -216,7 +216,7 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S ``` -Response will contain up to 10 records (`maxRecords="10"`) that their ingestion date is Greater or Equal +Response will contain up to 10 records (`maxRecords="10"`) that their **ingestion date** is Greater or Equal **2020-09-03T00:00:01Z** ```xml @@ -241,7 +241,7 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S ``` -Response will contain up to 10 records (maxRecords="10") that their ingestion date is Less or Equal +Response will contain up to 10 records (maxRecords="10") that their **ingestion date** is Less or Equal **2022-09-03T00:00:01Z** ```xml ``` @@ -272,7 +272,7 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S ``` -Response will contain up to 10 records (maxRecords="10") that includes product version `"4.0"` and their ingestion date is Less than the desired date. +Response will contain up to 10 records (maxRecords="10") that includes product version `"4.0"` and their ingestion date is Less than the desired date **2022-09-03T00:00:01Z** . ## Query by ***BBOX*** ```xml @@ -295,7 +295,7 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S ``` -Response will contain up to 10 records ('maxRecords="10"') that their **BBOX** includes in the desired extent (in example: -180, -190, 180, 90 +Response will contain up to 10 records ('maxRecords="10"') that their **BBOX** includes in the desired extent (in example: -180, -190, 180, 90) ## Query by ***BBOX*** and ***region*** ```xml @@ -324,4 +324,40 @@ outputSchema="http://schema.mapcolonies.com/raster" version="2.0.2" xmlns:mc="[S ``` -Response will contain up to 10 records ('maxRecords="10"') that their **BBOX includes includes in the desired extent and their region is contains the word “ירדן”** (`%ירדן%`) +Response will contain up to 10 records ('maxRecords="10"') that their **BBOX includes in the desired extent and their region is contains the word “ירדן”** (`%ירדן%`) + + +## Query by ***productType***, ***ingestionDate*** and ***maxResolutionDeg*** ordered by ***DESC ingestionDate*** +```xml + + + + full + + + + + mc:productType + Orthophoto + + + mc:ingestionDate + 2023-10-15T00:00:01Z + + + mc:maxResolutionDeg + 5.36441E-06 + + + + + + + mc:ingestionDate + DESC + + + + +``` +Response will contain up to 100 records ('maxRecords="100"') that their **productType** is **'Orthophoto'**, **maxResolutionDeg** is less than **'5.36441E-06'** ordered by **DESC ingestionDate** after **'2023-10-15T00:00:01Z'** \ No newline at end of file