Appearance
Query Analysis Detail V2 API
API Information
- Request Path:
/analysis/task/query/detailV2 - Request Method:
GET - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
Request Parameters
| Parameter | Type | Required | Description | Constraints |
|---|---|---|---|---|
| id | Long | Yes | Task ID | Must be a valid task ID |
Parameter Example
/analysis/task/query/detailV2?id=12345Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | AnalysisTaskDetailV2 | Analysis task detail V2 response |
AnalysisTaskDetailV2 Object
| Field | Type | Description |
|---|---|---|
| id | Long | Task ID |
| taskName | String | Task name |
| taskStatus | Integer | Task status (2=Progressing, 3=Complete, 4=Failed) |
| ctime | Long | Create time |
| mtime | Long | Modified time |
| duration | Long | Task duration (ms) |
| metaDataId | Long | Metadata ID |
| taskItems | List<AnalysisTaskItemDetail> | List of task result items |
AnalysisTaskItemDetail Object (Nested in AnalysisTaskDetailV2)
| Field | Type | Description |
|---|---|---|
| id | Long | Metadata ID |
| algorithmName | String | Algorithm name |
| taskId | String | Sub Task ID |
| status | Integer | Sub Task status (2=Progressing, 3=Complete, 4=Failed) |
| layer | String | Layer Name |
| num | String | Analysis result count |
| totalArea | String | Analysis result total area |
| color | String | Result style (color) |
| fillOpa | Float | fill opacity |
| stroke | String | stroke color |
| strokeOpa | Float | stroke opacity |
| strokeWt | Float | stroke width |
| analysisResult | AnalysisResultResp | Analysis result |
AnalysisResultResp Object (Nested in AnalysisTaskItemDetail)
| Field | Type | Description |
|---|---|---|
| algorithmCode | String | Algorithm code |
| stage | String | Stage: waiting/pre process/process/post process/publishing/completed/failed |
| progress | Double | Progress Percentage |
| data | PublishVectorResp | Analysis result data |
PublishVectorResp Object (Nested in AnalysisResultResp)
| Field | Type | Description |
|---|---|---|
| layer | String | Layer name |
| store | String | Store name |
| workspace | String | Workspace name |
| wfs | VectorProtoc | WFS result |
| wms | VectorProtoc | WMS result |
| wmts | VectorProtoc | WMTS result |
VectorProtoc Object (Nested in PublishVectorResp)
| Field | Type | Description |
|---|---|---|
| defaultFormat | String | Default format |
| supportFormat | List<String> | Support formats |
| uri | String | Resource URI |
Response Examples
Success Response
json
{
"code": 200,
"message": "OK",
"data": {
"id": 215,
"taskName": "TEST_API_TASK",
"thumbnail": null,
"taskStatus": 3,
"ctime": 1763951470,
"mtime": 1763952620,
"duration": 1150,
"metaDataId": 406,
"taskItems": [
{
"id": 217,
"algorithmName": "Building",
"taskId": "1992787813702561793",
"status": 3,
"num": 20,
"totalArea": 31385.300227568678,
"color": "#E95757",
"analysisResult": {
"algorithmCode": "neu_extract_building_segmentation",
"geometryType": "polygon",
"data": {
"layer": "aiibghghacgzbefagic",
"store": "aiibghghacgzbefagic",
"wfs": {
"defaultFormat": "application/json",
"supportFormat": [
"application/json",
"SHAPE-ZIP",
"application/vnd.google-earth.kml+xml"
],
"uri": "https://eo.origen.ae/geoserver/default_workspace/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=aiibghghacgzbefagic"
},
"wms": {
"defaultFormat": "image/png",
"supportFormat": [
"image/png",
"image/jpeg"
],
"uri": "https://eo.origen.ae/geoserver/default_workspace/wms?service=WMS&request=GetMap&version=1.1.0&layers=aiibghghacgzbefagic&styles=&srs=EPSG:4326"
},
"wmts": {
"defaultFormat": "image/png",
"supportFormat": [
"image/png",
"image/jpeg"
],
"uri": "https://eo.origen.ae/geoserver/default_workspace/gwc/service/wmts?Service=WMTS&Request=GetTile&version=1.0.0&layer=aiibghghacgzbefagic&styles=&tilematrixset=EPSG:4326"
},
"workspace": "default_workspace"
},
"elements": [
{
"num": 20,
"totalArea": 31385.300227568678,
"category": "Buildings",
"categoryName": null,
"color": "#E95757",
"fillOpa": 0.8,
"stroke": "#FFFFFF",
"strokeOpa": 0.8,
"strokeWt": 1.0
}
]
}
}
]
}
}Failure Response
json
{
"code": 404,
"message": "Task not found",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 404 | Task not found |
| 500 | Server internal error |
Usage Instructions
- This API is used to query detailed information about a specific analysis task (V2 version)
- User authentication is required
- Task ID must be provided as query parameter
- Returns enhanced task information including execution logs and thumbnails
Notes
- Task ID is required and must be a valid task ID
- Enhanced version with additional information like execution logs
- User authentication token must be included in request headers