stac-api-protocol 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/.gitignore +1 -0
  2. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/CHANGELOG.md +15 -3
  3. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/PKG-INFO +7 -1
  4. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/README.md +5 -0
  5. stac_api_protocol-0.2.0/demo/.gitignore +1 -0
  6. stac_api_protocol-0.2.0/demo/README.md +50 -0
  7. stac_api_protocol-0.2.0/demo/download-data.sh +24 -0
  8. stac_api_protocol-0.2.0/demo/examples.sh +58 -0
  9. stac_api_protocol-0.2.0/demo/pyproject.toml +36 -0
  10. stac_api_protocol-0.2.0/demo/stac_api_demo/__init__.py +15 -0
  11. stac_api_protocol-0.2.0/demo/stac_api_demo/service.py +253 -0
  12. stac_api_protocol-0.2.0/demo/start.sh +19 -0
  13. stac_api_protocol-0.2.0/docs/diagrams/architecture.svg +1 -0
  14. stac_api_protocol-0.2.0/docs/diagrams/architecture_dark.svg +1 -0
  15. stac_api_protocol-0.2.0/docs/diagrams/src/architecture.puml +71 -0
  16. stac_api_protocol-0.2.0/docs/index.md +137 -0
  17. {stac_api_protocol-0.1.0/docs → stac_api_protocol-0.2.0/docs/reference}/index.md +8 -12
  18. stac_api_protocol-0.2.0/docs/reference/openapi.html +483 -0
  19. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/pyproject.toml +39 -19
  20. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/__about__.py +1 -1
  21. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/main.py +168 -20
  22. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/models.py +46 -2
  23. stac_api_protocol-0.2.0/src/stac_api_protocol/queryables.json +34 -0
  24. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/stac_service.py +32 -9
  25. stac_api_protocol-0.2.0/tests/test_bbox_queries.py +136 -0
  26. stac_api_protocol-0.2.0/tests/test_filter_compliance.py +479 -0
  27. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/tests/test_models.py +10 -1
  28. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/tests/test_routes.py +10 -10
  29. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/tests/test_search_validation.py +8 -4
  30. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/tests/test_stac_service.py +29 -26
  31. stac_api_protocol-0.1.0/docs/reference/index.md +0 -20
  32. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/LICENSE +0 -0
  33. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/explanation/architecture.md +0 -0
  34. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/explanation/index.md +0 -0
  35. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/how-to/index.md +0 -0
  36. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/how-to/install.md +0 -0
  37. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/how-to/register-service.md +0 -0
  38. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/how-to/use-cli.md +0 -0
  39. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/reference/api.md +0 -0
  40. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/tutorials/first-steps.md +0 -0
  41. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/docs/tutorials/index.md +0 -0
  42. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/__init__.py +0 -0
  43. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/plugin_loader.py +0 -0
  44. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/src/stac_api_protocol/py.typed +0 -0
  45. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/tests/conftest.py +0 -0
  46. {stac_api_protocol-0.1.0 → stac_api_protocol-0.2.0}/tests/test_plugin_loader.py +0 -0
@@ -41,6 +41,7 @@ uv.lock
41
41
 
42
42
  schemas/collections.yaml
43
43
  schemas/core.yaml
44
+ schemas/filter.yaml
44
45
  schemas/item-search.yaml
45
46
  schemas/ogcapi-features.yaml
46
47
  schemas/openapi.referenced.yaml
@@ -23,8 +23,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
 
24
24
  ## [Unreleased]
25
25
 
26
+ ## [0.2.0] - 2026-11-25
27
+
28
+ ### Changed
29
+
30
+ - Landing page links are no longer absolute
31
+
26
32
  ### Added
27
33
 
34
+ - **Breaking:** Added [STAC API - Filter Extension Specification](https://github.com/stac-api-extensions/filter) support.
35
+
36
+ ## [0.1.1] - 2026-11-14
37
+
28
38
  ### Changed
29
39
 
30
40
  ### Deprecated
@@ -33,9 +43,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
43
 
34
44
  ### Fixed
35
45
 
36
- ### Security
46
+ - `bbox` not accepted as 4 or 6 CVS (encoded) HTTP query string parameter
37
47
 
38
- ### Added
48
+ ### Security
39
49
 
40
50
  ## [0.1.0] - 2026-01-01
41
51
 
@@ -43,5 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
43
53
 
44
54
  - Initial project release.
45
55
 
46
- [Unreleased]: https://github.com/Terradue/stac-api-protocol/compare/0.1.0...HEAD
56
+ [Unreleased]: https://github.com/Terradue/stac-api-protocol/compare/0.2.0...HEAD
57
+ [0.2.0]: https://github.com/Terradue/stac-api-protocol/compare/0.1.1...0.2.0
58
+ [0.1.1]: https://github.com/Terradue/stac-api-protocol/compare/0.1.0...0.1.1
47
59
  [0.1.0]: https://github.com/Terradue/stac-api-protocol/releases/tag/0.1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: stac-api-protocol
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: A Python FastAPI HTTP adapter for STAC API Core, Item Search, Features and Collections.
5
5
  Project-URL: Documentation, https://terradue.github.io/stac-api-protocol/
6
6
  Project-URL: Issues, https://github.com/Terradue/stac-api-protocol/issues
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.15
20
20
  Classifier: Programming Language :: Python :: Implementation :: CPython
21
21
  Classifier: Programming Language :: Python :: Implementation :: PyPy
22
22
  Requires-Python: >=3.11
23
+ Requires-Dist: cql2json-pydantic>=0.2.0
23
24
  Requires-Dist: fastapi>=0.162.4
24
25
  Requires-Dist: geojson==3.3.0
25
26
  Requires-Dist: pystac<2,>=1.14
@@ -92,3 +93,8 @@ task quality:pre-commit:run
92
93
  ## License
93
94
 
94
95
  [![Apache License, Version 2.0](https://img.shields.io/badge/license-Apache%20License%202.0-blue)](https://www.apache.org/licenses/LICENSE-2.0)
96
+
97
+ ## GeoParquet demo
98
+
99
+ See [demo/README.md](demo/README.md) for a runnable NAIP-backed `StacApiService`,
100
+ Uvicorn launch command, and curl/jq examples for every API operation.
@@ -62,3 +62,8 @@ task quality:pre-commit:run
62
62
  ## License
63
63
 
64
64
  [![Apache License, Version 2.0](https://img.shields.io/badge/license-Apache%20License%202.0-blue)](https://www.apache.org/licenses/LICENSE-2.0)
65
+
66
+ ## GeoParquet demo
67
+
68
+ See [demo/README.md](demo/README.md) for a runnable NAIP-backed `StacApiService`,
69
+ Uvicorn launch command, and curl/jq examples for every API operation.
@@ -0,0 +1 @@
1
+ data/
@@ -0,0 +1,50 @@
1
+ # NAIP GeoParquet demo
2
+
3
+ A small `StacApiService` implementation using the existing FastAPI adapter.
4
+ Collection metadata comes from `collections.json`; item queries use DuckDB and
5
+ `pygeofilter-duckdb` over `naip.parquet` from the
6
+ [Development Seed sample data](https://github.com/developmentseed/labs-375-stac-geoparquet-backend/tree/main/data).
7
+
8
+ From the repository root, with Python 3.11 or newer:
9
+
10
+ ```bash
11
+ cd demo
12
+ uv venv
13
+ uv pip install -e .. -e .
14
+
15
+ bash ./download-data.sh
16
+ bash ./start.sh
17
+ ```
18
+
19
+ The demo has its own `pyproject.toml`, which registers the service plugin and
20
+ declares Uvicorn and database dependencies. `demo/start.sh` runs Uvicorn directly
21
+ and forwards all arguments to it.
22
+ Install it in an environment with no other `stacapi.service:item_service` provider.
23
+ Set `STAC_DEMO_DATA_DIR` to an absolute directory to launch outside the repository.
24
+ The download script also honors this variable. Downloads are excluded from Git.
25
+
26
+ In another terminal, with `curl` and `jq` installed:
27
+
28
+ ```bash
29
+ bash demo/examples.sh
30
+ # Or: bash demo/examples.sh http://127.0.0.1:8090
31
+ ```
32
+
33
+ The script makes one request per API operation, including both GET and POST
34
+ search, using an actual NAIP tile and spatial/temporal bounds from the dataset.
35
+ Swagger documentation is available at `/docs`.
36
+
37
+ All five collection descriptions are exposed. Only NAIP items are loaded;
38
+ other listed collections have empty item results. Unknown collections and missing
39
+ individual items return 404. Searches support IDs, collections, bbox, intersects,
40
+ and inclusive datetime instants/intervals (including open bounds). Results are
41
+ sorted by collection and ID, default to 10 items, and have no pagination.
42
+ Six-coordinate boxes use XY only because NAIP footprints have no elevation.
43
+ The original asset and item links are preserved and may point to Planetary Computer.
44
+
45
+ GET `bbox` accepts comma-separated coordinates or repeated query parameters.
46
+ Other GET lists use repeated query parameters, and POST `intersects` is a
47
+ JSON-encoded string. It does not add a CQL
48
+ endpoint; `pygeofilter-duckdb` translates the existing search arguments internally.
49
+ Each query uses its own DuckDB connection. Runtime queries use downloaded local
50
+ files and a preinstalled spatial extension, with no external database server.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Copyright 2026 Terradue
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ set -euo pipefail
18
+ # Run from any directory; override the target with STAC_DEMO_DATA_DIR.
19
+ data_dir=${STAC_DEMO_DATA_DIR:-"$(dirname "${BASH_SOURCE[0]}")/data"}
20
+ base=https://raw.githubusercontent.com/developmentseed/labs-375-stac-geoparquet-backend/main/data
21
+ mkdir -p "$data_dir"
22
+ for filename in collections.json naip.parquet; do
23
+ curl --fail --location --show-error "$base/$filename" --output "$data_dir/$filename"
24
+ done
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Copyright 2026 Terradue
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ set -euo pipefail
18
+ base=${1:-http://127.0.0.1:8090}
19
+ base=${base%/}
20
+
21
+ echo "Demo exposes labs 375 — stac-fastapi-geoparquet from developmentseed as STAC APIs"
22
+
23
+ read -p "Press Enter for Catalogue identity and navigation."
24
+ curl -v --fail --silent --show-error "$base/" | jq .
25
+
26
+ read -p "Press Enter for Advertised conformance classes."
27
+ curl -v --fail --silent --show-error "$base/conformance" | jq .
28
+
29
+ read -p "Press Enter for Static collection metadata, including datasets not loaded in this demo."
30
+ curl -v --fail --silent --show-error "$base/collections" | jq .
31
+
32
+ read -p "Press Enter for NAIP's Colorado/Nebraska coverage and acquisition dates."
33
+ curl -v --fail --silent --show-error "$base/collections/naip" | jq .
34
+
35
+ read -p "Press Enter for Two imagery tiles acquired in 2022."
36
+ curl -v --fail --silent --show-error --get "$base/collections/naip/items" \
37
+ --data-urlencode 'limit=2' \
38
+ --data-urlencode 'bbox=-103,40,102,42' \
39
+ --data-urlencode 'datetime=2022-01-01T00:00:00Z/2022-12-31T23:59:59Z' \
40
+ | jq .
41
+
42
+ read -p "Press Enter for A real southwest-quarter NAIP tile near the Nebraska/Colorado border."
43
+ item=ne_m_4110264_sw_13_060_20220827
44
+ curl -v --fail --silent --show-error "$base/collections/naip/items/$item" \
45
+ | jq .
46
+
47
+ read -p "Press Enter to GET search combines collection and item identifiers."
48
+ curl -v --fail --silent --show-error --get "$base/search" \
49
+ --data-urlencode 'collections=naip' --data-urlencode "ids=$item" \
50
+ | jq .
51
+
52
+ read -p "Press Enter to POST search uses the adapter's JSON-encoded string for intersects."
53
+ jq -n '{collections: ["naip"], limit: 2,
54
+ datetime: "2022-01-01T00:00:00Z/..",
55
+ intersects: ({type: "Point", coordinates: [-102.09, 41.03]} | tojson)}' \
56
+ | curl -v --fail --silent --show-error "$base/search" \
57
+ --header 'Content-Type: application/json' --data @- \
58
+ | jq .
@@ -0,0 +1,36 @@
1
+ # Copyright 2026 Terradue
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ [build-system]
16
+ requires = ["hatchling==1.33.0"]
17
+ build-backend = "hatchling.build"
18
+
19
+ [project]
20
+ name = "stac-api-protocol-demo"
21
+ version = "0.1.0"
22
+ description = "A small NAIP GeoParquet service for stac-api-protocol"
23
+ requires-python = ">=3.11"
24
+ dependencies = [
25
+ "stac-api-protocol",
26
+ "duckdb>=1.5,<2",
27
+ "duckdb-extension-spatial>=1.5,<2",
28
+ "pygeofilter-duckdb==0.2.0",
29
+ "uvicorn>=0.54,<1",
30
+ ]
31
+
32
+ [project.entry-points."stacapi.service"]
33
+ item_service = "stac_api_demo.service:get_service"
34
+
35
+ [tool.hatch.build.targets.wheel]
36
+ packages = ["stac_api_demo"]
@@ -0,0 +1,15 @@
1
+ # Copyright 2026 Terradue
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Provide the demo's registered GeoParquet service."""
@@ -0,0 +1,253 @@
1
+ # Copyright 2026 Terradue
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Serve static collection metadata and query NAIP GeoParquet with DuckDB."""
16
+
17
+ from __future__ import annotations
18
+
19
+ import json
20
+ import os
21
+ from datetime import datetime as DateTime
22
+ from functools import cache
23
+ from pathlib import Path
24
+ from typing import TYPE_CHECKING
25
+
26
+ import duckdb
27
+ from pygeofilter import ast, values
28
+ from pygeofilter_duckdb import to_sql_where
29
+ from pystac import Collection, Item, ItemCollection, Link
30
+
31
+ from stac_api_protocol.models import Collections
32
+ from stac_api_protocol.stac_service import StacApiService
33
+
34
+ if TYPE_CHECKING:
35
+ from geojson import GeometryCollection
36
+ from geojson.geometry import Geometry as GeometryGeoJSON
37
+
38
+ # These are STAC Item top-level fields; all other Parquet columns are properties.
39
+ ITEM_FIELDS = frozenset(
40
+ {
41
+ "type",
42
+ "stac_version",
43
+ "stac_extensions",
44
+ "id",
45
+ "geometry",
46
+ "bbox",
47
+ "links",
48
+ "assets",
49
+ "collection",
50
+ }
51
+ )
52
+
53
+
54
+ def _temporal_filters(datetime_value: str) -> list[ast.Node]:
55
+ """Build inclusive time bounds for NAIP's instantaneous acquisitions."""
56
+ start, _, end = datetime_value.partition("/")
57
+ if not end:
58
+ end = start
59
+ filters: list[ast.Node] = []
60
+ if start != "..":
61
+ filters.append(
62
+ ast.GreaterEqual(
63
+ ast.Attribute("datetime"), DateTime.fromisoformat(start.upper()).isoformat()
64
+ )
65
+ )
66
+ if end != "..":
67
+ filters.append(
68
+ ast.LessEqual(
69
+ ast.Attribute("datetime"), DateTime.fromisoformat(end.upper()).isoformat()
70
+ )
71
+ )
72
+ return filters
73
+
74
+
75
+ def _bbox_filter(bbox: list[float]) -> ast.Node:
76
+ """Build a 2D spatial predicate, including antimeridian-crossing bounds.
77
+
78
+ NAIP footprints have no vertical dimension; six-value boxes use XY bounds.
79
+
80
+ Raises:
81
+ ValueError: If the box has neither four nor six coordinates.
82
+ """
83
+ dimensions = len(bbox) // 2
84
+ if dimensions not in (2, 3) or len(bbox) != dimensions * 2:
85
+ raise ValueError("Expected four or six bbox coordinates")
86
+ west, south, east, north = bbox[0], bbox[1], bbox[dimensions], bbox[dimensions + 1]
87
+ geometry = ast.Attribute("geometry")
88
+ if west > east:
89
+ return ast.Or(
90
+ ast.BBox(geometry, west, south, 180, north),
91
+ ast.BBox(geometry, -180, south, east, north),
92
+ )
93
+ return ast.BBox(geometry, west, south, east, north)
94
+
95
+
96
+ def _spatial_filters(
97
+ bbox: list[float] | None,
98
+ intersects: GeometryGeoJSON | GeometryCollection | None,
99
+ ) -> list[ast.Node]:
100
+ """Build spatial predicates from the standard Item Search parameters."""
101
+ filters: list[ast.Node] = []
102
+ if bbox is not None:
103
+ filters.append(_bbox_filter(bbox))
104
+ if intersects is not None:
105
+ filters.append(
106
+ ast.GeometryIntersects(ast.Attribute("geometry"), values.Geometry(intersects))
107
+ )
108
+ return filters
109
+
110
+
111
+ def _read_item(payload: str) -> Item:
112
+ """Restore nested STAC properties from a flattened GeoParquet row."""
113
+ record = json.loads(payload)
114
+ record["properties"] = {
115
+ name: record.pop(name) for name in list(record) if name not in ITEM_FIELDS
116
+ }
117
+ # Parquet structs include null placeholders for assets absent on this item.
118
+ record["assets"] = {
119
+ name: asset for name, asset in record["assets"].items() if asset is not None
120
+ }
121
+ return Item.from_dict(record)
122
+
123
+
124
+ class GeoParquetService(StacApiService):
125
+ """Expose the sample catalogue with NAIP as its only loaded item dataset."""
126
+
127
+ def __init__(self, data_dir: Path) -> None:
128
+ """Read collections.json and locate naip.parquet in a local directory.
129
+
130
+ Args:
131
+ data_dir: Directory populated by the demo's download script.
132
+
133
+ Raises:
134
+ FileNotFoundError: If either required data file is missing.
135
+ """
136
+ super().__init__("naip-demo", "NAIP GeoParquet demo", "NAIP imagery queried with DuckDB")
137
+ self._parquet = data_dir / "naip.parquet"
138
+ if not self._parquet.is_file():
139
+ raise FileNotFoundError(f"Missing {self._parquet}; run bash download-data.sh")
140
+ self._collections = {
141
+ collection.id: collection
142
+ for collection in (
143
+ Collection.from_dict(record)
144
+ for record in json.loads((data_dir / "collections.json").read_text())
145
+ )
146
+ }
147
+
148
+ def get_collections(self) -> Collections:
149
+ """Return all static collection descriptions, including metadata-only datasets."""
150
+ return Collections(
151
+ collections=[collection.clone() for collection in self._collections.values()],
152
+ links=[Link("self", "/collections"), Link("root", "/")],
153
+ )
154
+
155
+ def describe_collection(self, collection_id: str) -> Collection | None:
156
+ """Return an independent collection description, or None for an unknown ID."""
157
+ collection = self._collections.get(collection_id)
158
+ return collection.clone() if collection is not None else None
159
+
160
+ def get_features(
161
+ self,
162
+ collection_id: str,
163
+ limit: int | None,
164
+ bbox: list[float] | None,
165
+ datetime: str | None,
166
+ filter: str | dict[str, object] | bool | None = None,
167
+ ) -> ItemCollection | None:
168
+ """Return a collection's matching items, or None for an unknown collection.
169
+
170
+ Raises:
171
+ NotImplementedError: If a CQL2 filter is supplied for an existing collection.
172
+ """
173
+ if collection_id not in self._collections:
174
+ return None
175
+ return self.get_item_search(bbox, None, datetime, limit, None, [collection_id], filter)
176
+
177
+ def get_feature(self, collection_id: str, feature_id: str) -> Item | None:
178
+ """Look up an item by both collection and item ID, returning None if absent."""
179
+ result = self.get_item_search(None, None, None, 1, [feature_id], [collection_id])
180
+ return next(iter(result), None)
181
+
182
+ def get_item_search(
183
+ self,
184
+ bbox: list[float] | None,
185
+ intersects: GeometryGeoJSON | GeometryCollection | None,
186
+ datetime: str | None,
187
+ limit: int | None,
188
+ ids: list[str] | None,
189
+ collections: list[str] | None,
190
+ filter: str | dict[str, object] | bool | None = None,
191
+ ) -> ItemCollection:
192
+ """Search NAIP using conjunctive filters and a deterministic, limited result.
193
+
194
+ Unloaded collections and unmatched criteria produce an empty collection.
195
+ The demo returns at most 10 items by default and does not paginate.
196
+
197
+ Raises:
198
+ NotImplementedError: If a CQL2 filter is supplied. This demo only
199
+ implements the standard Item Search parameters.
200
+ """
201
+ if filter is not None:
202
+ raise NotImplementedError("The demo does not implement CQL2 filtering")
203
+ filters: list[ast.Node] = []
204
+ for field, choices in (("id", ids), ("collection", collections)):
205
+ if choices is not None:
206
+ if not choices:
207
+ return ItemCollection([])
208
+ filters.append(ast.In(ast.Attribute(field), list(choices), False))
209
+ filters.extend(_spatial_filters(bbox, intersects))
210
+ if datetime is not None:
211
+ filters.extend(_temporal_filters(datetime))
212
+ return self._query(filters, limit if limit is not None else 10)
213
+
214
+ def _query(self, filters: list[ast.Node], limit: int) -> ItemCollection:
215
+ """Query using a fresh connection so concurrent requests share no cursor."""
216
+ with duckdb.connect(config={"threads": 1}) as connection:
217
+ connection.execute("INSTALL spatial")
218
+ connection.load_extension("spatial")
219
+ connection.execute("SET TimeZone = 'UTC'")
220
+ records = connection.read_parquet(str(self._parquet))
221
+ for predicate in filters:
222
+ # Only server-selected fields and escaped literals reach this SQL API.
223
+ records = records.filter(
224
+ to_sql_where(
225
+ predicate,
226
+ {
227
+ "id": "id",
228
+ "collection": "collection",
229
+ "geometry": "geometry",
230
+ "datetime": "datetime",
231
+ },
232
+ )
233
+ )
234
+ records = (
235
+ records.order('"collection", "id"')
236
+ .limit(limit)
237
+ .project(
238
+ "* REPLACE (ST_AsGeoJSON(geometry)::JSON AS geometry, "
239
+ "[bbox.xmin, bbox.ymin, bbox.xmax, bbox.ymax] AS bbox)"
240
+ )
241
+ )
242
+ rows = (
243
+ records.to_view("results")
244
+ .query("results", "SELECT to_json(results) FROM results")
245
+ .fetchall()
246
+ )
247
+ return ItemCollection([_read_item(row[0]) for row in rows])
248
+
249
+
250
+ @cache
251
+ def get_service() -> GeoParquetService:
252
+ """Load the demo service once, using STAC_DEMO_DATA_DIR or demo/data."""
253
+ return GeoParquetService(Path(os.environ.get("STAC_DEMO_DATA_DIR", "./data")))
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Copyright 2026 Terradue
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ set -euo pipefail
18
+
19
+ exec uv run --no-project uvicorn stac_api_protocol.main:app --host 0.0.0.0 --port 8090
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:1722px;height:747px;background:#FFFFFF;" width="1722px" height="747px" viewBox="0 0 1722 747" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.9beta4?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><!--cluster stac_api_protocol--><g class="cluster" data-qualified-name="stac_api_protocol" id="ent0002" data-source-line="5"><rect x="176.744" y="114" width="1471" height="280.72" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><rect x="1627.744" y="119" width="15" height="10" fill="none" style="stroke:#181818;stroke-width:1;"/><rect x="1625.744" y="121" width="4" height="2" fill="none" style="stroke:#181818;stroke-width:1;"/><rect x="1625.744" y="125" width="4" height="2" fill="none" style="stroke:#181818;stroke-width:1;"/><text x="835.599" y="139.995" fill="#000" font-size="14" textLength="153.289" font-weight="700">STAC API - Protocol</text></g><!--cluster rdb--><g class="cluster" data-qualified-name="rdb" id="ent0019" data-source-line="33"><path d="M238.744,469.57 C238.744,459.57 386.244,459.57 386.244,459.57 C386.244,459.57 533.744,459.57 533.744,469.57 L533.744,567.87 C533.744,577.87 386.244,577.87 386.244,577.87 C386.244,577.87 238.744,577.87 238.744,567.87 L238.744,469.57" style="stroke:#181818;stroke-width:1;" fill="none"/><path d="M238.744,469.57 C238.744,479.57 386.244,479.57 386.244,479.57 C386.244,479.57 533.744,479.57 533.744,469.57" style="stroke:#181818;stroke-width:1;" fill="none"/><text x="306.308" y="494.565" fill="#000" font-size="14" textLength="159.872" font-weight="700">Relational DataBase</text></g><!--cluster gdb--><g class="cluster" data-qualified-name="gdb" id="ent0025" data-source-line="41"><path d="M578.744,462.72 C578.744,452.72 695.244,452.72 695.244,452.72 C695.244,452.72 811.744,452.72 811.744,462.72 L811.744,712.72 C811.744,722.72 695.244,722.72 695.244,722.72 C695.244,722.72 578.744,722.72 578.744,712.72 L578.744,462.72" style="stroke:#181818;stroke-width:1;" fill="none"/><path d="M578.744,462.72 C578.744,472.72 695.244,472.72 695.244,472.72 C695.244,472.72 811.744,472.72 811.744,462.72" style="stroke:#181818;stroke-width:1;" fill="none"/><text x="671.328" y="487.715" fill="#000" font-size="14" textLength="47.831" font-weight="700">Graph</text></g><!--cluster ddb--><g class="cluster" data-qualified-name="ddb" id="ent0032" data-source-line="51"><path d="M912.744,468.07 C912.744,458.07 1004.244,458.07 1004.244,458.07 C1004.244,458.07 1095.744,458.07 1095.744,468.07 L1095.744,707.37 C1095.744,717.37 1004.244,717.37 1004.244,717.37 C1004.244,717.37 912.744,717.37 912.744,707.37 L912.744,468.07" style="stroke:#181818;stroke-width:1;" fill="none"/><path d="M912.744,468.07 C912.744,478.07 1004.244,478.07 1004.244,478.07 C1004.244,478.07 1095.744,478.07 1095.744,468.07" style="stroke:#181818;stroke-width:1;" fill="none"/><text x="924.106" y="493.065" fill="#000" font-size="14" textLength="160.275" font-weight="700">Document DataBase</text></g><!--cluster kvdb--><g class="cluster" data-qualified-name="kvdb" id="ent0036" data-source-line="57"><path d="M1192.744,453.72 C1192.744,443.72 1286.244,443.72 1286.244,443.72 C1286.244,443.72 1379.744,443.72 1379.744,453.72 L1379.744,583.72 C1379.744,593.72 1286.244,593.72 1286.244,593.72 C1286.244,593.72 1192.744,593.72 1192.744,583.72 L1192.744,453.72" style="stroke:#181818;stroke-width:1;" fill="none"/><path d="M1192.744,453.72 C1192.744,463.72 1286.244,463.72 1286.244,463.72 C1286.244,463.72 1379.744,463.72 1379.744,453.72" style="stroke:#181818;stroke-width:1;" fill="none"/><text x="1222.847" y="478.715" fill="#000" font-size="14" textLength="126.793" font-weight="700">Key/Value Store</text></g><!--entity fast--><g class="entity" data-qualified-name="stac_api_protocol.fast" id="ent0003" data-source-line="6"><rect x="748.394" y="157" width="110.694" height="62.594" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><rect x="839.088" y="162" width="15" height="10" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="837.088" y="164" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="837.088" y="168" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="764.394" y="189.995" fill="#000" font-size="14" textLength="68.694" font-style="italic">«FastAPI»</text><text x="763.399" y="206.292" fill="#000" font-size="14" textLength="70.684">STAC APIs</text></g><!--entity osws_s--><g class="entity" data-qualified-name="stac_api_protocol.osws_s" id="ent0004" data-source-line="8"><rect x="200.844" y="308.13" width="125.798" height="62.594" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><rect x="306.642" y="313.13" width="15" height="10" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="304.642" y="315.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="304.642" y="319.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="224.307" y="341.125" fill="#000" font-size="14" textLength="68.872" font-style="italic">«Service»</text><text x="215.844" y="357.422" fill="#000" font-size="14" textLength="85.798">OpenSearch</text></g><!--entity rdb_s--><g class="entity" data-qualified-name="stac_api_protocol.rdb_s" id="ent0005" data-source-line="9"><rect x="429.714" y="308.13" width="182.064" height="62.594" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><rect x="591.778" y="313.13" width="15" height="10" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="589.778" y="315.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="589.778" y="319.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="481.31" y="341.125" fill="#000" font-size="14" textLength="68.872" font-style="italic">«Service»</text><text x="444.714" y="357.422" fill="#000" font-size="14" textLength="142.064">Relational DataBase</text></g><!--entity gdb_s--><g class="entity" data-qualified-name="stac_api_protocol.gdb_s" id="ent0006" data-source-line="10"><rect x="748.304" y="308.13" width="110.872" height="62.594" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><rect x="839.176" y="313.13" width="15" height="10" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="837.176" y="315.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="837.176" y="319.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="764.304" y="341.125" fill="#000" font-size="14" textLength="68.872" font-style="italic">«Service»</text><text x="777.268" y="357.422" fill="#000" font-size="14" textLength="42.943">Graph</text></g><!--entity ddb_s--><g class="entity" data-qualified-name="stac_api_protocol.ddb_s" id="ent0007" data-source-line="11"><rect x="995.494" y="308.13" width="184.498" height="62.594" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><rect x="1159.992" y="313.13" width="15" height="10" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="1157.992" y="315.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="1157.992" y="319.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="1048.307" y="341.125" fill="#000" font-size="14" textLength="68.872" font-style="italic">«Service»</text><text x="1010.494" y="357.422" fill="#000" font-size="14" textLength="144.498">Document DataBase</text></g><!--entity kvdb_s--><g class="entity" data-qualified-name="stac_api_protocol.kvdb_s" id="ent0008" data-source-line="12"><rect x="1295.694" y="308.13" width="152.089" height="62.594" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><rect x="1427.783" y="313.13" width="15" height="10" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="1425.783" y="315.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><rect x="1425.783" y="319.13" width="4" height="2" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="1332.302" y="341.125" fill="#000" font-size="14" textLength="68.872" font-style="italic">«Service»</text><text x="1310.694" y="357.422" fill="#000" font-size="14" textLength="112.089">Key/Value Store</text></g><g class="entity" data-qualified-name="rdb.table_a" id="ent0020" data-source-line="34"><rect x="262.804" y="517.57" width="65.878" height="36.297" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><text x="269.804" y="532.565" fill="#000" font-size="14" textLength="51.878">Table 1</text><line x1="263.804" y1="537.867" x2="327.682" y2="537.867" style="stroke:#181818;stroke-width:0.5;"/></g><g class="entity" data-qualified-name="rdb.table_n" id="ent0021" data-source-line="35"><rect x="423.024" y="517.57" width="67.443" height="36.297" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><text x="430.024" y="532.565" fill="#000" font-size="14" textLength="53.443">Table N</text><line x1="424.024" y1="537.867" x2="489.467" y2="537.867" style="stroke:#181818;stroke-width:0.5;"/></g><g class="entity" data-qualified-name="rdb.dia" id="ent0022"><polygon points="375.744,523.72,387.744,535.72,375.744,547.72,363.744,535.72,375.744,523.72" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><g class="entity" data-qualified-name="gdb.Node1" id="ent0026" data-source-line="42"><rect x="603.024" y="510.72" width="65.445" height="50" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="12.5" ry="12.5"/><line x1="603.024" y1="537.017" x2="668.469" y2="537.017" style="stroke:#181818;stroke-width:0.5;"/><text x="613.024" y="528.715" fill="#000" font-size="14" textLength="45.445">Node1</text></g><g class="entity" data-qualified-name="gdb.Node2" id="ent0027" data-source-line="43"><rect x="703.024" y="510.72" width="65.445" height="50" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="12.5" ry="12.5"/><line x1="703.024" y1="537.017" x2="768.469" y2="537.017" style="stroke:#181818;stroke-width:0.5;"/><text x="713.024" y="528.715" fill="#000" font-size="14" textLength="45.445">Node2</text></g><g class="entity" data-qualified-name="gdb.NodeN" id="ent0028" data-source-line="44"><rect x="652.234" y="648.72" width="67.011" height="50" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="12.5" ry="12.5"/><line x1="652.234" y1="675.017" x2="719.244" y2="675.017" style="stroke:#181818;stroke-width:0.5;"/><text x="662.234" y="666.715" fill="#000" font-size="14" textLength="47.011">NodeN</text></g><!--entity d1--><g class="entity" data-qualified-name="ddb.d1" id="ent0033" data-source-line="52"><rect x="936.804" y="516.07" width="115.887" height="39.297" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><polygon points="1035.69,521.07,1035.69,535.07,1047.69,535.07,1047.69,527.07,1041.69,521.07,1035.69,521.07" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;stroke-linejoin:miter;stroke-miterlimit:10;"/><line x1="1041.69" y1="521.07" x2="1041.69" y2="527.07" style="stroke:#181818;stroke-width:0.5;"/><line x1="1047.69" y1="527.07" x2="1041.69" y2="527.07" style="stroke:#181818;stroke-width:0.5;"/><text x="946.804" y="542.065" fill="#000" font-size="14" textLength="85.887">Document 1</text></g><!--entity dn--><g class="entity" data-qualified-name="ddb.dn" id="ent0034" data-source-line="53"><rect x="937.014" y="654.07" width="117.452" height="39.297" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><polygon points="1037.466,659.07,1037.466,673.07,1049.466,673.07,1049.466,665.07,1043.466,659.07,1037.466,659.07" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;stroke-linejoin:miter;stroke-miterlimit:10;"/><line x1="1043.466" y1="659.07" x2="1043.466" y2="665.07" style="stroke:#181818;stroke-width:0.5;"/><line x1="1049.466" y1="665.07" x2="1043.466" y2="665.07" style="stroke:#181818;stroke-width:0.5;"/><text x="947.014" y="680.065" fill="#000" font-size="14" textLength="87.452">Document N</text></g><g class="entity" data-qualified-name="kvdb.myMap" id="ent0037" data-source-line="58"><rect x="1225.244" y="505.72" width="103.426" height="60.891" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><text x="1260.243" y="520.715" fill="#000" font-size="14" textLength="33.428">Data</text><line x1="1225.244" y1="526.017" x2="1328.67" y2="526.017" style="stroke:#181818;stroke-width:1;"/><text x="1230.244" y="541.012" fill="#000" font-size="14" textLength="34.986">Key1</text><text x="1275.23" y="541.012" fill="#000" font-size="14" textLength="48.439">Value1</text><line x1="1270.23" y1="526.017" x2="1270.23" y2="546.314" style="stroke:#181818;stroke-width:1;"/><line x1="1225.244" y1="546.314" x2="1328.67" y2="546.314" style="stroke:#181818;stroke-width:1;"/><text x="1230.244" y="561.309" fill="#000" font-size="14" textLength="34.986">Key2</text><text x="1275.23" y="561.309" fill="#000" font-size="14" textLength="48.439">Value2</text><line x1="1270.23" y1="546.314" x2="1270.23" y2="566.611" style="stroke:#181818;stroke-width:1;"/></g><!--entity http--><g class="entity" data-qualified-name="http" id="ent0001" data-source-line="3"><ellipse cx="1639.744" cy="14" rx="8" ry="8" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><text x="1621.707" y="43.995" fill="#000" font-size="14" textLength="36.073">HTTP</text></g><g class="entity" data-qualified-name="GMN14" id="ent0015" data-source-line="22"><path d="M6.474,145.46 L6.474,231.124 L153.011,231.124 L153.011,155.46 L143.011,145.46 L6.474,145.46" style="stroke:#181818;stroke-width:0.5;" fill="#FEFFDD"/><path d="M143.011,145.46 L143.011,155.46 L153.011,155.46 L143.011,145.46" style="stroke:#181818;stroke-width:1;" fill="#FEFFDD"/><text x="12.474" y="162.527" fill="#000" font-size="13" textLength="125.538">Supports STAC API:</text><ellipse cx="17.974" cy="173.226" rx="2.5" ry="2.5" fill="#000"/><text x="24.474" y="177.66" fill="#000" font-size="13" textLength="30.374">Core</text><ellipse cx="17.974" cy="188.358" rx="2.5" ry="2.5" fill="#000"/><text x="24.474" y="192.793" fill="#000" font-size="13" textLength="71.075">Collections</text><ellipse cx="17.974" cy="203.491" rx="2.5" ry="2.5" fill="#000"/><text x="24.474" y="207.925" fill="#000" font-size="13" textLength="56.894">Features</text><ellipse cx="17.974" cy="218.624" rx="2.5" ry="2.5" fill="#000"/><text x="24.474" y="223.058" fill="#000" font-size="13" textLength="78.673">Item Search</text></g><!--entity osws--><g class="entity" data-qualified-name="osws" id="ent0018" data-source-line="31"><path d="M16.84,521.249 C21.168,514.185 25.957,515.258 30.479,521.043 C33.832,514.8 40.645,513.463 44.813,520.139 C49.763,513.103 54.208,514.857 58.319,521 C61.012,514.973 66.648,514.141 71.17,518.802 C76.061,511.183 80.656,511.532 85.53,518.819 C89.623,513.051 94.07,512.91 97.993,518.998 C101.625,511.241 107.329,511.709 111.887,518.088 C115.587,512.266 121.233,511.144 125.131,517.88 C130.054,511.228 135.036,511.554 139.564,518.306 C144.565,511.277 150.029,511.772 153.502,519.727 C157.382,512.76 163.542,514.492 166.634,520.524 C171.397,514.651 175.581,514.601 179.819,521.084 C184.671,514.512 189.395,513.6 194.65,520.646 C199.04,515.791 204.281,515.834 207.649,521.867 C218.207,522.048 219.689,529.12 215.534,536.979 C219.581,544.376 218.422,550.444 208.952,551.864 C205.157,558.363 198.131,557.342 194.657,551.492 C191.538,559.036 184.992,560.503 179.484,554.09 C175.575,560.466 170.684,560.6 167.003,553.873 C163.333,560.49 159.109,560.558 153.888,555.634 C149.659,562.538 144.601,562.65 140.058,555.953 C135.416,561.819 130.181,562.133 126.716,554.767 C123.571,561.425 116.755,563.284 111.756,556.892 C107.415,563.752 101.328,563.441 97.532,556.336 C92.718,562.934 88.743,562.753 84.279,555.989 C79.586,562.935 74.046,561.135 70.458,554.835 C66.5,560.447 62.28,560.85 58.102,555.074 C53.251,561.244 46.771,560.894 43.834,553.117 C39.85,558.868 33.657,558.316 30.66,552.037 C25.552,560.614 20.537,560.624 15.052,552.387 C6.184,548.339 6.747,542.404 12.674,536.185 C6,528.842 8.773,524.481 16.84,521.249" style="stroke:#181818;stroke-width:0.5;" fill="#F1F1F1"/><text x="21.854" y="540.565" fill="#000" font-size="14" textLength="177.782">OpenSearch Web Service</text></g><!--link fast to osws_s--><g class="link" data-entity-1="ent0003" data-entity-2="ent0004" id="lnk9" data-source-line="14" data-link-type="dependency"><path d="M747.954,189.42 C628.124,190.87 351.474,200.83 283.744,261.13 C270.694,272.74 266.197,286.68 264.427,302.88" style="stroke:#181818;stroke-width:1;" fill="none" id="fast-to-osws_s" codeLine="14"/><polygon points="263.884,307.85,268.838,299.338,264.427,302.88,260.885,298.469,263.884,307.85" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="284.744" y="274.197" fill="#000" font-size="13" textLength="242.131">project.entry-points."stacapi.service"</text></g><!--link fast to rdb_s--><g class="link" data-entity-1="ent0003" data-entity-2="ent0005" id="lnk10" data-source-line="15" data-link-type="dependency"><path d="M748.114,190.49 C690.824,194.67 602.414,209.77 547.744,261.13 C534.794,273.29 529.128,287.127 525.618,303.087" style="stroke:#181818;stroke-width:1;" fill="none" id="fast-to-rdb_s" codeLine="15"/><polygon points="524.544,307.97,530.384,300.039,525.618,303.087,522.57,298.321,524.544,307.97" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="548.744" y="274.197" fill="#000" font-size="13" textLength="242.131">project.entry-points."stacapi.service"</text></g><!--link fast to gdb_s--><g class="link" data-entity-1="ent0003" data-entity-2="ent0006" id="lnk11" data-source-line="16" data-link-type="dependency"><path d="M801.834,219.71 C800.974,236.87 800.264,258.69 800.744,278.13 C800.984,287.77 801.176,293.267 801.666,302.767" style="stroke:#181818;stroke-width:1;" fill="none" id="fast-to-gdb_s" codeLine="16"/><polygon points="801.924,307.76,805.455,298.566,801.666,302.767,797.465,298.978,801.924,307.76" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="801.744" y="274.197" fill="#000" font-size="13" textLength="242.131">project.entry-points."stacapi.service"</text></g><!--link fast to ddb_s--><g class="link" data-entity-1="ent0003" data-entity-2="ent0007" id="lnk12" data-source-line="17" data-link-type="dependency"><path d="M841.954,220.08 C848.594,224.33 855.654,228.23 862.744,231.13 C940.244,262.83 981.164,211.68 1048.744,261.13 C1064.144,272.4 1072.174,286.804 1078.064,303.204" style="stroke:#181818;stroke-width:1;" fill="none" id="fast-to-ddb_s" codeLine="17"/><polygon points="1079.754,307.91,1080.476,298.088,1078.064,303.204,1072.947,300.792,1079.754,307.91" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="1064.744" y="274.197" fill="#000" font-size="13" textLength="242.131">project.entry-points."stacapi.service"</text></g><!--link fast to kvdb_s--><g class="link" data-entity-1="ent0003" data-entity-2="ent0008" id="lnk13" data-source-line="18" data-link-type="dependency"><path d="M840.744,220.05 C847.694,224.48 855.174,228.44 862.744,231.13 C957.804,264.91 1227.444,212.32 1315.744,261.13 C1334.454,271.47 1346.096,286.639 1355.456,303.489" style="stroke:#181818;stroke-width:1;" fill="none" id="fast-to-kvdb_s" codeLine="18"/><polygon points="1357.884,307.86,1357.01,298.05,1355.456,303.489,1350.017,301.935,1357.884,307.86" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="1336.744" y="274.197" fill="#000" font-size="13" textLength="242.131">project.entry-points."stacapi.service"</text></g><!--link GMN14 to stac_api_protocol--><g class="link" data-entity-1="ent0015" data-entity-2="ent0002" id="lnk16" data-source-line="22" data-link-type="association"><path d="M110.484,145.09 C132.534,118.04 164.884,85.54 202.244,70.5 C275.004,41.19 1545.474,32.75 1614.244,70.5 C1625.431,76.643 1632.735,86.546 1637.371,98.068 C1638.53,100.949 1639.522,103.931 1640.366,106.981 C1640.788,108.506 1641.174,110.047 1641.524,111.602 C1641.7,112.379 1641.866,113.16 1642.025,113.943" style="stroke:#181818;stroke-width:1;stroke-dasharray:7,7;" fill="none" id="GMN14-stac_api_protocol"/></g><!--link http to stac_api_protocol--><g class="link" data-entity-1="ent0001" data-entity-2="ent0002" id="lnk17" data-source-line="29" data-link-type="association"><path d="M1639.744,22.85 C1639.744,31.145 1639.744,45.316 1639.744,61.969 C1639.744,70.296 1639.744,79.243 1639.744,88.386 C1639.744,92.957 1639.744,97.578 1639.744,102.194 C1639.744,104.502 1639.744,106.81 1639.744,109.109 C1639.744,110.259 1639.744,111.407 1639.744,112.552 C1639.744,112.839 1639.744,113.125 1639.744,113.411" style="stroke:#181818;stroke-width:1;" fill="none" id="http-stac_api_protocol" codeLine="29"/><text x="1640.744" y="86.067" fill="#000" font-size="13" textLength="65.635">STAC APIs</text></g><!--link table_a to dia--><g class="link" data-entity-1="ent0020" data-entity-2="ent0022" id="lnk23" data-source-line="37" data-link-type="dependency"><path d="M329.184,535.72 C340.574,535.72 346.974,535.72 358.374,535.72" style="stroke:#181818;stroke-width:1;" fill="none" id="table_a-to-dia" codeLine="37"/><polygon points="363.374,535.72,354.374,531.72,358.374,535.72,354.374,539.72,363.374,535.72" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link dia to table_n--><g class="link" data-entity-1="ent0022" data-entity-2="ent0021" id="lnk24" data-source-line="38" data-link-type="dependency"><path d="M388.404,535.72 C399.794,535.72 406.184,535.72 417.574,535.72" style="stroke:#181818;stroke-width:1;" fill="none" id="dia-to-table_n" codeLine="38"/><polygon points="422.574,535.72,413.574,531.72,417.574,535.72,413.574,539.72,422.574,535.72" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link Node1 to Node2--><g class="link" data-entity-1="ent0026" data-entity-2="ent0027" id="lnk29" data-source-line="46" data-link-type="dependency"><path d="M668.944,535.72 C680.164,535.72 686.384,535.72 697.604,535.72" style="stroke:#181818;stroke-width:1;" fill="none" id="Node1-to-Node2" codeLine="46"/><polygon points="702.604,535.72,693.604,531.72,697.604,535.72,693.604,539.72,702.604,535.72" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link Node1 to NodeN--><g class="link" data-entity-1="ent0026" data-entity-2="ent0028" id="lnk30" data-source-line="47" data-link-type="dependency"><path d="M644.684,561.03 C653.784,585.79 666.077,619.248 675.157,643.928" style="stroke:#181818;stroke-width:1;" fill="none" id="Node1-to-NodeN" codeLine="47"/><polygon points="676.884,648.62,677.53,638.792,675.157,643.928,670.022,641.555,676.884,648.62" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link Node2 to NodeN--><g class="link" data-entity-1="ent0027" data-entity-2="ent0028" id="lnk31" data-source-line="48" data-link-type="dependency"><path d="M726.804,561.03 C717.704,585.79 705.398,619.247 696.328,643.927" style="stroke:#181818;stroke-width:1;" fill="none" id="Node2-to-NodeN" codeLine="48"/><polygon points="694.604,648.62,701.463,641.552,696.328,643.927,693.954,638.793,694.604,648.62" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link d1 to dn--><!--link osws_s to osws--><g class="link" data-entity-1="ent0004" data-entity-2="ent0018" id="lnk38" data-source-line="64" data-link-type="dependency"><path d="M239.504,371.21 C208.574,410.48 158.927,473.532 131.527,508.322" style="stroke:#181818;stroke-width:1;" fill="none" id="osws_s-to-osws" codeLine="64"/><polygon points="128.434,512.25,137.145,507.654,131.527,508.322,130.86,502.705,128.434,512.25" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link rdb_s to rdb--><g class="link" data-entity-1="ent0005" data-entity-2="ent0019" id="lnk39" data-source-line="65" data-link-type="dependency"><path d="M521.534,371.21 C521.881,384.693 522.312,401.442 522.765,419.034 C522.992,427.829 523.224,436.836 523.453,445.75 C523.568,450.207 523.553,449.642 523.666,454.015" style="stroke:#181818;stroke-width:1;" fill="none" id="rdb_s-to-rdb" codeLine="65"/><polygon points="523.794,459.014,527.561,449.914,523.666,454.015,519.564,450.119,523.794,459.014" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link gdb_s to gdb--><g class="link" data-entity-1="ent0006" data-entity-2="ent0025" id="lnk40" data-source-line="66" data-link-type="dependency"><path d="M803.744,371.21 C803.744,384.693 803.744,401.442 803.744,419.034 C803.744,427.829 803.744,436.836 803.744,445.75 C803.744,447.978 803.744,445.201 803.744,447.413" style="stroke:#181818;stroke-width:1;" fill="none" id="gdb_s-to-gdb" codeLine="66"/><polygon points="803.744,452.413,807.744,443.413,803.744,447.413,799.744,443.413,803.744,452.413" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link ddb_s to ddb--><g class="link" data-entity-1="ent0007" data-entity-2="ent0032" id="lnk41" data-source-line="67" data-link-type="dependency"><path d="M1087.744,371.21 C1087.744,384.693 1087.744,401.442 1087.744,419.034 C1087.744,427.829 1087.744,436.836 1087.744,445.75 C1087.744,447.978 1087.744,450.201 1087.744,452.413 C1087.744,453.519 1087.744,454.623 1087.744,455.723 C1087.744,456.273 1087.744,451.823 1087.744,452.371" style="stroke:#181818;stroke-width:1;" fill="none" id="ddb_s-to-ddb" codeLine="67"/><polygon points="1087.744,457.371,1091.744,448.371,1087.744,452.371,1083.744,448.371,1087.744,457.371" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link kvdb_s to kvdb--><g class="link" data-entity-1="ent0008" data-entity-2="ent0036" id="lnk42" data-source-line="68" data-link-type="dependency"><path d="M1371.744,371.21 C1371.744,384.693 1371.744,401.442 1371.744,419.034 C1371.744,423.432 1371.744,427.882 1371.744,432.347 C1371.744,434.58 1371.744,436.816 1371.744,439.052 C1371.744,440.169 1371.744,441.287 1371.744,442.403 C1371.744,442.683 1371.744,437.962 1371.744,438.241" style="stroke:#181818;stroke-width:1;" fill="none" id="kvdb_s-to-kvdb" codeLine="68"/><polygon points="1371.744,443.241,1375.744,434.241,1371.744,438.241,1367.744,434.241,1371.744,443.241" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><?plantuml-src fLDDRnCn4BtFhnZv14WRj3b69L9fLQWG8M8ZE20KUTTEik1TMxRJ4bNzxuoz7-pI91BqO7cUPzwCFNx3bTBtLVchhBS0BruYUxzQBHboXpll3K2XAwDhMNjasUho2Y-NjvZWqcgl2wrYeFEyM7DJharxYW_7Q2u6RxZpU75nGnkTpUUZ2f-Ch3F9RR6BiThTkxMZw4pQkxAG53q8_YmLzwMkkS9hxlbRxcHaMP6V9hspt3J9j-V2hdMnhu8roYpEKJx8m-ilNEqbPbxRXl3pxWa3OWEIPDwzReQCKUD-oC9FA94z94QNjNSJ5lfARPsuXimO-qDk7lb_tEqpkE8PtBOR_qH-1AYrbwZangFUFDKQP7jZjFKEEvtDu1LUqG_4JIagGo9nX6uaztihWtdhPOMDqa3M0aCDWA1ukkaHGS_wx8u4g_HU3CMANsMExHVtmWKGf9sSj7DMgZGhEW-zGBRYkPAOHeyFzfh_vLiCV3M8abUQBayxjF4OleWWhM1saO_3oun6WChJQwd12oraEh2d0ti14DqXPUDhOOiN4Ky7U5Jmv31HSMvzkU75SEIQ1eZqcAzfWA2tK_Llkr88MNzFmi6eugbPf88LDvIF8kDXTVX8-068aEAREKPI6k2qXrFAJTdRSUqc5ve9R6SHjZqY2qIFo89Mzzq8_0O0?></g></svg>