# 矢量数据流
# 创建矢量数据流
# 请求 URL:
http://host:port/heycloud/api/io/vdatastream/create
# 请求方式:
- POST
# 请求 Header:
字段 | 类型 | 是否必选 | 说明 |
---|---|---|---|
x-heycloud-admin-session | String | 是 | 通过 session 提供管理权限 |
x-heycloud-account-id | String | 是 | 帐号的唯一标识符 |
# 请求参数:
参数名称 | 可选值 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|---|
title | - | String | 是 | - | 标题 |
sr | web-mercator | wgs-84 | cgcs-2000 | gcj-02 | bd-09 | String | 是 | - | 坐标系统 |
geomType | Point|Polyline|Polygon | MultiPoint | MultiPolyline |MultiPolygon | String | 是 | - | 几何类型 |
# 请求示例:
POST http://host:port/heycloud/api/io/vdatastream/create
{
"title": "用户下单",
"sr": "wgs-84",
"geomType": "Point"
}
# 正确响应示例:
{
"result": {
"id": "3108a604-3a69-4c40-ae3f-f449d6fe4ca9",
"accountId": "",
"title": "11",
"sr": "wgs-84",
"geomType": "Polyline",
"createdAt": "2021-03-10T08:42:22.120Z"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}
# 将无主数据分配给某个帐号
# 请求 URL:
http://host:port/heycloud/api/io/vdatastream/:vdatastreamId/assign
# 请求方式:
- POST
# 请求 Header:
字段 | 类型 | 是否必选 | 说明 |
---|---|---|---|
x-heycloud-admin-session | String | 是 | 通过 session 提供管理权限 |
# 请求参数:
参数名称 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|
vdatastreamId | String | 是 | - | 矢量数据流的 ID |
accountId | String | 是 | - | 账号 |
# 请求示例:
POST http://host:port/heycloud/api/io/vdatastream/xxxxx/assign
{
accountId: 'xxxxxx';
}
# 正确响应示例:
{
"result": {
"id": "68ee1874-0a86-47dd-befa-8b2328d3f64b",
"assingnedAt": "2021-02-04T09:46:34.465Z"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}
# 按时间丢弃过期数据
# 请求 URL:
http://host:port/heycloud/api/io/vdatastream/:vdatastreamId/drop
# 请求方式:
- POST
# 请求 Header:
字段 | 类型 | 是否必选 | 说明 |
---|---|---|---|
x-heycloud-admin-session | String | 是 | 通过 session 提供管理权限 |
x-heycloud-account-id | String | 是 | 帐号的唯一标识符 |
# 请求参数:
参数名称 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|
vdatastreamId | String | 是 | - | 矢量数据流的 ID |
interval | String | 否 | 3 months | 时间间隔 |
# 请求示例:
POST http://host:port/heycloud/api/io/vdatastream/xxxxx/drop
{
interval: '30 days';
}
# 正确响应示例:
{
"result": {
"interval": "xxxx",
"droppedAt": "2021-02-04T09:46:34.465Z"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}
# 删除矢量数据流
# 请求 URL:
http://host:port/heycloud/api/io/vdatastream/:vdatastreamId
# 请求方式:
- DELETE
# 请求 Header:
字段 | 类型 | 是否必选 | 说明 |
---|---|---|---|
x-heycloud-admin-session | String | 是 | 通过 session 提供管理权限 |
x-heycloud-account-id | String | 是 | 帐号的唯一标识符 |
# 请求参数:
参数名称 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|
vdatastreamId | String | 是 | - | 矢量数据流的 ID |
# 请求示例:
DELETE http://host:port/heycloud/api/io/vdatastream/xxxxx
# 正确响应示例:
{
"result": {
"id": "68ee1874-0a86-47dd-befa-8b2328d3f64b",
"deletedAt": "2021-02-04T09:46:34.465Z"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}