# 矢量数据连接
# 创建矢量数据连接
# 请求 URL:
http://host:port/heycloud/api/io/vdataconnector/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 | 是 | - | 几何类型 |
type | - | String | 是 | - | 服务类型 |
parameters | - | Object | 是 | - | 连接参数 |
└ url | - | String | 是 | - | url |
# 请求示例:
POST http://host:port/heycloud/api/io/vdataconnector/create
{
title: "飞机航班数据",
type: "wfs3",
parameters: {
"url": "http://<wfs-url>"
}
}
# 正确响应示例:
{
"result": {
"id": "<uuid>",
"title": "飞机航班数据"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}
# 将无主数据分配给某个帐号
# 请求 URL:
http://host:port/heycloud/api/io/vdataconnector/:vdataconnectorId/assign
# 请求方式:
- POST
# 请求 Header:
字段 | 类型 | 是否必选 | 说明 |
---|---|---|---|
x-heycloud-admin-session | String | 是 | 通过 session 提供管理权限 |
# 请求参数:
参数名称 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|
vdataconnectorId | String | 是 | - | 数据集的 ID |
accountId | String | 是 | - | 账号 |
# 请求示例:
POST http://host:port/heycloud/api/io/vdataconnector/xxxxx/assign
{
accountId: 'xxx';
}
# 正确响应示例:
{
"result": {
"id": "68ee1874-0a86-47dd-befa-8b2328d3f64b",
"assingnedAt": "2021-02-04T09:46:34.465Z"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}
# 删除矢量数据连接
# 请求 URL:
http://host:port/heycloud/api/io/vdataconnector/:vdataconnectorId
# 请求方式:
- DELETE
# 请求 Header:
字段 | 类型 | 是否必选 | 说明 |
---|---|---|---|
x-heycloud-admin-session | String | 是 | 通过 session 提供管理权限 |
x-heycloud-account-id | String | 是 | 帐号的唯一标识符 |
# 请求参数:
参数名称 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|
vdataconnectorId | String | 是 | - | 影像集的 ID |
# 请求示例:
DELETE http://host:port/heycloud/api/io/vdataconnector/xxxxx
# 正确响应示例:
{
"result": {
"id": "68ee1874-0a86-47dd-befa-8b2328d3f64b",
"deletedAt": "2021-02-04T09:46:34.465Z"
}
}
# 错误响应示例:
{
"error": "Error",
"message": "错误信息"
}