Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex Search Support for ISupplier #37

Merged
merged 13 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
dotnet-version: |
6.0.x
7.0.x
- name: Install dependencies (hdf5)
run: sudo apt install hdf5-tools -y
- name: Restore dependencies
Expand Down
5 changes: 0 additions & 5 deletions global.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"filter": {
"op": "=",
"args": [
{
"property": "id"
},
"LC08_L1TP_060247_20180905_20180912_01_T1_L1TP"
]
},
"result":
{
"{http://a9.com/-/opensearch/extensions/geo/1.0/}uid": "LC08_L1TP_060247_20180905_20180912_01_T1_L1TP"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"filter": {
"op": "and",
"args": [
{
"op": "=",
"args": [
{
"property": "id"
},
"S2A_60HWB_20201111_0_L2A"
]
},
{
"op": "=",
"args": [
{
"property": "collection"
},
"sentinel-s2-l2a-cogs"
]
}
]
},
"result":
{
"{http://a9.com/-/opensearch/extensions/geo/1.0/}uid": "S2A_60HWB_20201111_0_L2A",
"{http://a9.com/-/opensearch/extensions/eo/1.0/}parentIdentifier": "sentinel-s2-l2a-cogs"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "between",
"args": [
{
"property": "eo:cloud_cover"
},
0,
50
]
},
"result": {
"{http://a9.com/-/opensearch/extensions/eo/1.0/}cloudCover": "[0,50]"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "like",
"args": [
{ "property": "mission" },
"sentinel%"
]
},
"exception": "System.NotSupportedException"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "in",
"args": [
{
"property": "keywords"
},
[
"fire",
"forest",
"wildfire"
]
]
},
"result": {
"{http://purl.org/dc/terms/}subject": "{fire,forest,wildfire}"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "and",
"args": [
{
"op": "=",
"args": [
{
"property": "collection"
},
"landsat8_l1tp"
]
},
{
"op": "<=",
"args": [
{
"property": "eo:cloud_cover"
},
10
]
},
{
"op": ">=",
"args": [
{
"property": "datetime"
},
{
"timestamp": "2021-04-08T04:39:23Z"
}
]
},
{
"op": "s_intersects",
"args": [
{
"property": "geometry"
},
{
"type": "Polygon",
"coordinates": [
[
[
43.5845,
-79.5442
],
[
43.6079,
-79.4893
],
[
43.5677,
-79.4632
],
[
43.6129,
-79.3925
],
[
43.6223,
-79.3238
],
[
43.6576,
-79.3163
],
[
43.7945,
-79.1178
],
[
43.8144,
-79.1542
],
[
43.8555,
-79.1714
],
[
43.7509,
-79.6390
],
[
43.5845,
-79.5442
]
]
]
}
]
}
]
},
"result": {
"{http://a9.com/-/opensearch/extensions/eo/1.0/}parentIdentifier": "landsat8_l1tp",
"{http://a9.com/-/opensearch/extensions/eo/1.0/}cloudCover": "10]",
"{http://a9.com/-/opensearch/extensions/time/1.0/}start": "2021-04-08T04:39:23Z",
"{http://a9.com/-/opensearch/extensions/geo/1.0/}relation": "intersects",
"{http://a9.com/-/opensearch/extensions/geo/1.0/}geometry": "POLYGON((43.5845 -79.5442,43.6079 -79.4893,43.5677 -79.4632,43.6129 -79.3925,43.6223 -79.3238,43.6576 -79.3163,43.7945 -79.1178,43.8144 -79.1542,43.8555 -79.1714,43.7509 -79.639,43.5845 -79.5442))"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "and",
"args": [
{
"op": ">",
"args": [ { "property": "sentinel:data_coverage" }, 50 ]
},
{
"op": "<",
"args": [ { "property": "eo:cloud_cover" }, 10 ]
}
]
},
"exception": "System.NotSupportedException"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "or",
"args": [
{
"op": ">",
"args": [ { "property": "sentinel:data_coverage" }, 50 ]
},
{
"op": "<",
"args": [ { "property": "eo:cloud_cover" }, 10 ]
}
]
},
"exception": "System.NotSupportedException"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "=",
"args": [
{ "property": "prop1" },
{ "property": "prop2" }
]
},
"exception": "System.NotSupportedException"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "t_intersects",
"args": [
{
"property": "datetime"
},
{
"interval": [
"2020-11-11T00:00:00Z",
"2020-11-12T00:00:00Z"
]
}
]
},
"result": {
"{http://a9.com/-/opensearch/extensions/time/1.0/}relation": "intersects",
"{http://a9.com/-/opensearch/extensions/time/1.0/}start": "2020-11-11T00:00:00Z",
"{http://a9.com/-/opensearch/extensions/time/1.0/}end": "2020-11-12T00:00:00Z"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"filter-lang": "cql2-json",
"filter": {
"op": "s_intersects",
"args": [
{
"property": "geometry"
},
{
"type": "Polygon",
"coordinates": [
[
[
-77.0824,
38.7886
],
[
-77.0189,
38.7886
],
[
-77.0189,
38.8351
],
[
-77.0824,
38.8351
],
[
-77.0824,
38.7886
]
]
]
}
]
},
"result": {
"{http://a9.com/-/opensearch/extensions/geo/1.0/}relation": "intersects",
"{http://a9.com/-/opensearch/extensions/geo/1.0/}geometry": "POLYGON((-77.0824 38.7886,-77.0189 38.7886,-77.0189 38.8351,-77.0824 38.8351,-77.0824 38.7886))"
}
}
Loading