@@ -131,70 +131,6 @@ async def delete_collection(
131
131
...
132
132
133
133
134
- # @attr.s
135
- # class LandingPageMixin(abc.ABC):
136
- # """Create a STAC landing page (GET /)."""
137
-
138
- # stac_version: str = attr.ib(default=STAC_VERSION)
139
- # landing_page_id: str = attr.ib(default="stac-fastapi")
140
- # title: str = attr.ib(default="stac-fastapi")
141
- # description: str = attr.ib(default="stac-fastapi")
142
-
143
- # def _landing_page(
144
- # self,
145
- # base_url: str,
146
- # conformance_classes: List[str],
147
- # extension_schemas: List[str],
148
- # ) -> stac_types.LandingPage:
149
- # landing_page = stac_types.LandingPage(
150
- # type="Catalog",
151
- # id=self.landing_page_id,
152
- # title=self.title,
153
- # description=self.description,
154
- # stac_version=self.stac_version,
155
- # conformsTo=conformance_classes,
156
- # links=[
157
- # {
158
- # "rel": Relations.self.value,
159
- # "type": MimeTypes.json,
160
- # "href": base_url,
161
- # },
162
- # {
163
- # "rel": Relations.root.value,
164
- # "type": MimeTypes.json,
165
- # "href": base_url,
166
- # },
167
- # {
168
- # "rel": "data",
169
- # "type": MimeTypes.json,
170
- # "href": urljoin(base_url, "collections"),
171
- # },
172
- # {
173
- # "rel": Relations.conformance.value,
174
- # "type": MimeTypes.json,
175
- # "title": "STAC/WFS3 conformance classes implemented by this server",
176
- # "href": urljoin(base_url, "conformance"),
177
- # },
178
- # {
179
- # "rel": Relations.search.value,
180
- # "type": MimeTypes.geojson,
181
- # "title": "STAC search",
182
- # "href": urljoin(base_url, "search"),
183
- # "method": "GET",
184
- # },
185
- # {
186
- # "rel": Relations.search.value,
187
- # "type": MimeTypes.geojson,
188
- # "title": "STAC search",
189
- # "href": urljoin(base_url, "search"),
190
- # "method": "POST",
191
- # },
192
- # ],
193
- # stac_extensions=extension_schemas,
194
- # )
195
- # return landing_page
196
-
197
-
198
134
@attr .s # type:ignore
199
135
class AsyncBaseCoreClient (abc .ABC ):
200
136
"""Defines a pattern for implementing STAC api core endpoints.
0 commit comments