File tree Expand file tree Collapse file tree 11 files changed +19
-19
lines changed
extensions/stac_fastapi/extensions/core Expand file tree Collapse file tree 11 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 135
135
* Make item geometry and bbox nullable in sqlalchemy backend. ([ #398 ] ( https://github.com/stac-utils/stac-fastapi/pull/398 ) )
136
136
* Transactions Extension update Item endpoint Item is now ` /collections/{collection_id}/items/{item_id} ` instead of
137
137
` /collections/{collection_id}/items ` to align with [ STAC API
138
- spec] ( https://github.com/radiantearth/ stac-api-spec/tree/main/ogcapi-features/ extensions/transaction#methods ) ([ #425 ] ( https://github.com/stac-utils/stac-fastapi/pull/425 ) )
138
+ spec] ( https://github.com/stac-api-extensions/transaction#methods ) ([ #425 ] ( https://github.com/stac-utils/stac-fastapi/pull/425 ) )
139
139
140
140
### Removed
141
141
Original file line number Diff line number Diff line change 8
8
class ApiExtensions (enum .Enum ):
9
9
"""Enumeration of available stac api extensions.
10
10
11
- Ref: https://github.com/radiantearth/ stac-api-spec/tree/master/ extensions
11
+ Ref: https://github.com/stac-api-extensions
12
12
"""
13
13
14
14
context = "context"
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ class ContextExtension(ApiExtension):
14
14
The Context extension adds a JSON object to ItemCollection responses (`/search`,
15
15
`/collections/{collection_id}/items`) which includes the number of items matched,
16
16
returned, and the limit requested.
17
- https://github.com/radiantearth/ stac-api-spec/blob/master/item-search/README.md# context
17
+ https://github.com/stac-api-extensions/ context
18
18
"""
19
19
20
20
conformance_classes : List [str ] = attr .ib (
21
- factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.1 /item-search#context" ]
21
+ factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.2 /item-search#context" ]
22
22
)
23
23
schema_href : Optional [str ] = attr .ib (
24
- default = "https://raw.githubusercontent.com/radiantearth/ stac-api-spec/ v1.0.0-rc.1/fragments/context /json-schema/schema.json"
24
+ default = "https://raw.githubusercontent.com/stac-api-extensions/context/ v1.0.0-rc.2 /json-schema/schema.json"
25
25
)
26
26
27
27
def register (self , app : FastAPI ) -> None :
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class FieldsExtension(ApiExtension):
20
20
the Fields extension allows the API to return potentially invalid responses
21
21
by excluding fields which are required by the STAC spec, such as geometry.
22
22
23
- https://github.com/radiantearth/ stac-api-spec/blob/master/item-search/README.md# fields
23
+ https://github.com/stac-api-extensions/ fields
24
24
25
25
Attributes:
26
26
default_includes (set): defines the default set of included fields.
@@ -32,7 +32,7 @@ class FieldsExtension(ApiExtension):
32
32
POST = FieldsExtensionPostRequest
33
33
34
34
conformance_classes : List [str ] = attr .ib (
35
- factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.1 /item-search#fields" ]
35
+ factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.3 /item-search#fields" ]
36
36
)
37
37
default_includes : Set [str ] = attr .ib (
38
38
factory = lambda : {
Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ class FilterConformanceClasses(str, Enum):
19
19
"""Conformance classes for the Filter extension.
20
20
21
21
See
22
- https://github.com/radiantearth/ stac-api-spec/tree/v1.0.0-rc.1/fragments /filter
22
+ https://github.com/stac-api-extensions /filter
23
23
"""
24
24
25
25
FILTER = "http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/filter"
26
26
FEATURES_FILTER = (
27
27
"http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/features-filter"
28
28
)
29
- ITEM_SEARCH_FILTER = "https://api.stacspec.org/v1.0.0-rc.1 /item-search#filter"
29
+ ITEM_SEARCH_FILTER = "https://api.stacspec.org/v1.0.0-rc.2 /item-search#filter"
30
30
CQL2_TEXT = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-text"
31
31
CQL2_JSON = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-json"
32
32
BASIC_CQL2 = "http://www.opengis.net/spec/cql2/1.0/conf/basic-cql2"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class FilterLang(str, Enum):
13
13
"""Choices for filter-lang value in a POST request.
14
14
15
15
Based on
16
- https://github.com/radiantearth/ stac-api-spec/tree/master/fragments /filter#queryables
16
+ https://github.com/stac-api-extensions /filter#queryables
17
17
18
18
Note the addition of cql2-json, which is used by the pgstac backend,
19
19
but is not included in the spec above.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class QueryExtension(ApiExtension):
23
23
POST = QueryExtensionPostRequest
24
24
25
25
conformance_classes : List [str ] = attr .ib (
26
- factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.1 /item-search#query" ]
26
+ factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.2 /item-search#query" ]
27
27
)
28
28
schema_href : Optional [str ] = attr .ib (default = None )
29
29
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ class SortExtension(ApiExtension):
15
15
16
16
The Sort extension adds the `sortby` parameter to the `/search` endpoint, allowing the
17
17
caller to specify the sort order of the returned items.
18
- https://github.com/radiantearth/ stac-api-spec/blob/master/item-search/README.md# sort
18
+ https://github.com/stac-api-extensions/ sort
19
19
"""
20
20
21
21
GET = SortExtensionGetRequest
22
22
POST = SortExtensionPostRequest
23
23
24
24
conformance_classes : List [str ] = attr .ib (
25
- factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.1 /item-search#sort" ]
25
+ factory = lambda : ["https://api.stacspec.org/v1.0.0-rc.2 /item-search#sort" ]
26
26
)
27
27
schema_href : Optional [str ] = attr .ib (default = None )
28
28
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class TransactionExtension(ApiExtension):
53
53
settings : ApiSettings = attr .ib ()
54
54
conformance_classes : List [str ] = attr .ib (
55
55
factory = lambda : [
56
- "https://api.stacspec.org/v1.0.0-rc.1 /ogcapi-features/extensions/transaction" ,
56
+ "https://api.stacspec.org/v1.0.0-rc.2 /ogcapi-features/extensions/transaction" ,
57
57
"http://www.opengis.net/spec/ogcapi-features-4/1.0/conf/simpletx" ,
58
58
]
59
59
)
Original file line number Diff line number Diff line change 5
5
class STACConformanceClasses (str , Enum ):
6
6
"""Conformance classes for the STAC API spec."""
7
7
8
- CORE = "https://api.stacspec.org/v1.0.0-rc.1 /core"
9
- OGC_API_FEAT = "https://api.stacspec.org/v1.0.0-rc.1 /ogcapi-features"
10
- COLLECTIONS = "https://api.stacspec.org/v1.0.0-rc.1 /collections"
11
- ITEM_SEARCH = "https://api.stacspec.org/v1.0.0-rc.1 /item-search"
8
+ CORE = "https://api.stacspec.org/v1.0.0/core"
9
+ OGC_API_FEAT = "https://api.stacspec.org/v1.0.0/ogcapi-features"
10
+ COLLECTIONS = "https://api.stacspec.org/v1.0.0/collections"
11
+ ITEM_SEARCH = "https://api.stacspec.org/v1.0.0/item-search"
12
12
13
13
14
14
class OAFConformanceClasses (str , Enum ):
You can’t perform that action at this time.
0 commit comments