Stac Collection Operations - Get
获取集合
在 GeoCatalog 实例中获取集合
GET https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/stac/collections/{collectionId}?api-version=2025-04-30-preview
GET https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/stac/collections/{collectionId}?api-version=2025-04-30-preview&sign={sign}&duration={duration}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
collection
|
path | True |
string minLength: 1maxLength: 500 pattern: .* |
集合的唯一标识符。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
duration
|
query |
integer (int32) |
URL 签名持续时间(以秒为单位)。 |
|
sign
|
query |
是否在响应中对资产 URL 进行签名。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求已成功。 |
|
Other Status Codes |
意外的错误响应。 标头 x-ms-error-code: string |
安全性
OAuth2Auth
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
https://geocatalog.spatio.azure.com/.default |
示例
StacCollectionOperations_Get
示例请求
GET https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/stac/collections/test-collection-568725878606?api-version=2025-04-30-preview
示例响应
{
"id": "test-collection-568725878606",
"type": "Collection",
"links": [
{
"rel": "items",
"type": "application/geo+json",
"href": "http://ysuxzlchart-spatio-inma-769d5c7676-j5rfk/stac/collections/test-collection-568725878606/items"
},
{
"rel": "parent",
"type": "application/json",
"href": "http://ysuxzlchart-spatio-inma-769d5c7676-j5rfk/stac/"
},
{
"rel": "root",
"type": "application/json",
"href": "http://ysuxzlchart-spatio-inma-769d5c7676-j5rfk/stac/"
},
{
"rel": "self",
"type": "application/json",
"href": "http://ysuxzlchart-spatio-inma-769d5c7676-j5rfk/stac/collections/test-collection-568725878606"
}
],
"title": "Test Collection 568725878606",
"extent": {
"spatial": {
"bbox": [
[
-180,
-90,
180,
90
]
]
},
"temporal": {
"interval": [
[
"2020-01-01T00:00:00Z",
null
]
]
}
},
"license": "CC-BY-4.0",
"description": "A collection for integration tests purposes",
"stac_version": "1.0.0",
"msft:_created": "2024-11-01T19:18:06.121986Z",
"msft:_updated": "2024-11-01T19:18:06.121986Z"
}
定义
名称 | 说明 |
---|---|
Asset |
https://github.com/radiantearth/stac-spec/blob/v1.0.0/item-spec/item-spec.md#asset-object 表示 STAC 资产,它是与 STAC 项目关联的文件或资源。 |
Azure. |
错误对象。 |
Azure. |
包含错误详细信息的响应。 |
Azure. |
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors。 |
Extent |
表示 STAC 集合的空间和时间范围。 |
Link |
链接模型。 参考:http://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/link.yaml 表示链接。 |
Link |
链接的 MIME 类型。 |
Provider |
表示有关 STAC 集合和项目的数据提供程序的信息。 |
Sign |
表示资产 URL 的签名类型。 |
Spatial |
表示带有边界框的 STAC 集合的空间范围。 |
Stac |
https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md 表示 STAC 集合。 |
Time |
表示具有时间间隔的 STAC 集合的时态范围。 |
Asset
https://github.com/radiantearth/stac-spec/blob/v1.0.0/item-spec/item-spec.md#asset-object
表示 STAC 资产,它是与 STAC 项目关联的文件或资源。
名称 | 类型 | 说明 |
---|---|---|
constellation |
string |
获取数据的卫星星座。 |
created |
string (date-time) |
数据的创建时间戳。 |
description |
string |
资产的详细说明。 |
gsd |
number (float) |
地面采样距离(以米为单位)。 |
href |
string minLength: 1 |
资产文件的 URL。 |
instruments |
string[] |
采集数据的仪器。 |
mission |
string |
与数据关联的任务。 |
platform |
string |
获取数据的平台。 |
providers |
Provider[] |
提供数据的组织或个人。 |
roles |
string[] |
资产在项目中的角色。 |
title |
string |
资产的人类可读标题。 |
type |
string |
资产的媒体类型。 |
updated |
string (date-time) |
数据的 Last update 时间戳。 |
Azure.Core.Foundations.Error
错误对象。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的错误代码集之一。 |
details |
导致此报告错误的特定错误的详细信息数组。 |
|
innererror |
包含与当前对象有关错误的更具体信息的对象。 |
|
message |
string |
有关错误的可读的表示形式。 |
target |
string |
错误的目标。 |
Azure.Core.Foundations.ErrorResponse
包含错误详细信息的响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
Azure.Core.Foundations.InnerError
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的错误代码集之一。 |
innererror |
内部错误。 |
Extent
表示 STAC 集合的空间和时间范围。
名称 | 类型 | 说明 |
---|---|---|
spatial |
由边界框定义的空间范围。 |
|
temporal |
由时间间隔定义的时态范围。 |
Link
链接模型。
参考:http://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/link.yaml
表示链接。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
body |
object |
对于 POST 请求,资源可以将 HTTP 正文指定为 JSON 对象。 |
|
headers |
object |
映射到标头的对象键值对。 示例:{ “accept”: “application/json” }。 |
|
href |
string |
链接的 URL。 |
|
hreflang |
string |
链接资源的语言。 |
|
length |
integer (int32) |
链接资源的长度。 |
|
merge |
boolean |
False |
指示客户端是否希望在访问链接之前将 body 值合并到当前请求正文中。 这仅在服务器响应 POST 请求时有效。 默认值:false。 |
method |
enum:
|
GET |
指定资源所需的 HTTP 方法。 默认值:GET。 |
rel |
string |
链接的关系类型。 |
|
title |
string |
链接的标题。 |
|
type | application/json |
链接资源的 MIME 类型。 |
LinkType
链接的 MIME 类型。
值 | 说明 |
---|---|
application/geo+json |
表示 application/geo+json。 |
application/json |
表示 application/json。 |
application/x-binary |
表示 application/x 二进制文件。 |
application/x-protobuf |
表示 application/x-protobuf。 |
application/xml |
表示 application/xml。 |
image/jp2 |
表示 image/jp2。 |
image/jpeg |
表示 image/jpeg。 |
image/jpg |
表示 image/jpg。 |
image/png |
表示 image/png。 |
image/tiff; application=geotiff |
表示具有 application=geotiff 的图像/tiff。 |
image/webp |
表示图像/webp。 |
text/html |
表示 text/html。 |
text/plain |
表示 text/plain。 |
Provider
表示有关 STAC 集合和项目的数据提供程序的信息。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
提供程序的说明。 |
name |
string minLength: 1 |
提供商、组织或个人的名称。 |
roles |
string[] |
提供者扮演的角色(例如,生产者、处理者、主持人)。 |
url |
string |
提供商网站的 URL。 |
SignType
表示资产 URL 的签名类型。
值 | 说明 |
---|---|
false |
不要在响应中对资产 URL 进行签名。 |
true |
对响应中的资产 URL 进行签名。 |
SpatialExtent
表示带有边界框的 STAC 集合的空间范围。
名称 | 类型 | 说明 |
---|---|---|
bbox |
number[] (double) |
定义空间范围的边界框数组,格式为 [[west, south, east, north]]。 |
StacCollection
https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md
表示 STAC 集合。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
assets |
<string, Asset> |
资产 |
|
description |
string minLength: 1 |
产品系列的详细说明。 |
|
extent |
集合的空间和时间范围。 |
||
id |
string minLength: 1maxLength: 500 pattern: .* |
集合的唯一标识符。 |
|
keywords |
string[] |
描述集合的关键字。 |
|
license |
string minLength: 1 |
集合数据的许可证标识符。 |
|
links |
Link[] |
指向相关资源和终端节点的链接。 |
|
msft:_created |
string |
已创建 MSFT |
|
msft:_updated |
string |
MSFT 已更新 |
|
msft:short_description |
string maxLength: 300 |
MSFT 简短描述 |
|
providers |
Provider[] |
提供集合数据的组织或个人。 |
|
stac_extensions |
string[] |
指向此 STAC 资源实现的 STAC 扩展的 URL。 |
|
stac_version |
string minLength: 1 |
1.0.0 |
Stac 版本 |
summaries |
object |
https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#summaries 摘要 |
|
title |
string |
集合的可读标题。 |
|
type |
string minLength: 1 |
Collection |
类型 |
TimeInterval
表示具有时间间隔的 STAC 集合的时态范围。
名称 | 类型 | 说明 |
---|---|---|
interval |
string[] |
格式为 [[start_datetime, end_datetime]] 的时间间隔数组。 |