开始后重建任务
POST
/openapi/v0.9/model/api/v1/workspaces/{proj_uuid}/reconstructions
es-file-storage
请求参数
Path 参数
proj_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
app_photo_num
integer
可选
example: 50
dock_photo_num
integer
可选
example: 20
folder_ids
array[integer]
可选
example: [123,456]
folder_uuids
array[string]
必需
example: ["uuid1", "uuid2"]
generate_model_formats
array[integer]
可选
example: [1,2,3]
import_photo_num
integer
可选
example: 30
media_num
integer
可选
example: 100
name
string
必需
example: "test_model"
predefine_area
object
预定义区域
polygon_points
array[object (model_vo.GeoPoint) {2}]
可选
example: [{"lat": 39.9042, "lng": 116.4074}]
>= 3 items<= 200 items
quality_level
integer
可选
example: 1
reconstruction_mode
integer
可选
example: 1
reconstruction_type
array[integer]
必需
example: [1,2]
simplified_factor
number
可选
example: 0.5
wkt
string
必需
example: "EPSG:4326"
workspace_id
string
可选
example: "ws-123"
示例
{
"app_photo_num": 0,
"dock_photo_num": 0,
"folder_ids": [
0
],
"folder_uuids": [
"string"
],
"generate_model_formats": [
0
],
"import_photo_num": 0,
"media_num": 0,
"name": "string",
"predefine_area": {
"polygon_points": [
{
"lat": 0,
"lng": 0
},
{
"lat": 0,
"lng": 0
},
{
"lat": 0,
"lng": 0
}
]
},
"quality_level": 0,
"reconstruction_mode": 0,
"reconstruction_type": [
0
],
"simplified_factor": 0,
"wkt": "string",
"workspace_id": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.9/model/api/v1/workspaces//reconstructions' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_photo_num": 0,
"dock_photo_num": 0,
"folder_ids": [
0
],
"folder_uuids": [
"string"
],
"generate_model_formats": [
0
],
"import_photo_num": 0,
"media_num": 0,
"name": "string",
"predefine_area": {
"polygon_points": [
{
"lat": 0,
"lng": 0
},
{
"lat": 0,
"lng": 0
},
{
"lat": 0,
"lng": 0
}
]
},
"quality_level": 0,
"reconstruction_mode": 0,
"reconstruction_type": [
0
],
"simplified_factor": 0,
"wkt": "string",
"workspace_id": "string"
}'
返回响应
🟢200成功
application/json
Body
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object
model_vo.StartPostReconstructionOutput
id
integer
可选
example: 123
uuid
string
可选
example: "4dbc6ef2-0e3c-4d47-8b32-552a44f573c5"
示例
{
"code": 0,
"message": "success",
"data": {
"id": 81119,
"uuid": "b5131cee-4e0e-47f8-af8d-23d6e0741370"
}
}
修改于 2025-06-27 12:02:20