Skip to content

Commit b1847af

Browse files
feat(pgstac): add queryables configuration with indexFields and deleteMissing options
1 parent d0dc7fa commit b1847af

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"$id": "https://stac-extensions.github.io/item-search/v1.0.0/schema.json",
4+
"title": "Test Queryables",
5+
"description": "Test queryables for eoapi",
6+
"type": "object",
7+
"properties": {
8+
"eo:cloud_cover": {
9+
"description": "Estimate of cloud cover as a percentage (0-100) of the entire scene",
10+
"type": "number",
11+
"title": "Cloud Cover",
12+
"minimum": 0,
13+
"maximum": 100
14+
},
15+
"view:sun_azimuth": {
16+
"description": "Sun azimuth angle in degrees",
17+
"type": "number",
18+
"title": "Sun Azimuth",
19+
"minimum": 0,
20+
"maximum": 360
21+
},
22+
"view:sun_elevation": {
23+
"description": "Sun elevation angle in degrees",
24+
"type": "number",
25+
"title": "Sun Elevation",
26+
"minimum": -90,
27+
"maximum": 90
28+
},
29+
"platform": {
30+
"description": "Platform or satellite name",
31+
"type": "string",
32+
"title": "Platform"
33+
},
34+
"instruments": {
35+
"description": "Instrument(s) used",
36+
"type": "array",
37+
"title": "Instruments",
38+
"items": {
39+
"type": "string"
40+
}
41+
}
42+
},
43+
"additionalProperties": true
44+
}

charts/eoapi/test-k3s-unittest-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ ingress:
88
pgstacBootstrap:
99
enabled: true
1010
settings:
11+
# Queryables configuration for testing
12+
queryables:
13+
- file: "initdb-data/queryables/test-queryables.json"
14+
indexFields: ["platform", "instruments"]
15+
deleteMissing: true
1116
resources:
1217
requests:
1318
cpu: "256m"

charts/eoapi/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ pgstacBootstrap:
169169
# Example:
170170
# queryables:
171171
# - file: "initdb-data/queryables/common-queryables.json"
172-
# indexFields: ["id", "datetime", "collection"]
172+
# indexFields: ["platform", "instruments"]
173173
# deleteMissing: true
174174
# - file: "initdb-data/queryables/collection-specific.json"
175175
# collections: ["my-collection-1", "my-collection-2"]
176-
# indexFields: []
176+
# indexFields: ["custom:field1", "custom:field2"]
177177
# deleteMissing: true
178178
queryables: []
179179

0 commit comments

Comments
 (0)