Skip to content

Commit 2fdabc2

Browse files
authored
Merge pull request #149 from jamesfisher-gis/main
Added Assets to the CollectionSerializer
2 parents 72038b0 + eadfc11 commit 2fdabc2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Added
1111

12+
- Collection-level Assets to the CollectionSerializer [#148](https://github.com/stac-utils/stac-fastapi-elasticsearch/issues/148)
13+
14+
### Added
15+
1216
- Examples folder with example docker setup for running sfes from pip [#147](https://github.com/stac-utils/stac-fastapi-elasticsearch/pull/147)
1317

1418
### Changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def db_to_stac(cls, collection: dict, base_url: str) -> stac_types.Collection:
132132
providers = collection.get("providers", {})
133133
summaries = collection.get("summaries", {})
134134
extent = collection.get("extent", {})
135+
collection_assets = collection.get("assets", {})
135136

136137
# Create the collection links using CollectionLinks
137138
collection_links = CollectionLinks(
@@ -157,4 +158,5 @@ def db_to_stac(cls, collection: dict, base_url: str) -> stac_types.Collection:
157158
summaries=summaries,
158159
extent=extent,
159160
links=collection_links,
161+
assets=collection_assets,
160162
)

0 commit comments

Comments
 (0)