{
"dataset": {
"datasourceName": "地形分析",
"datasetName": "dem84.tif"
},
"viewinfos": [
{
"viewPoint": {
"type": "Point Z",
"coordinates": [
101.6745411,
36.5119804,
2449.207
]
},
"offsetA": 1.8,
"offsetB": 0,
"azimuth1": 0,
"azimuth2": 120,
"vert1": 40,
"vert2": -40,
"radius1": 0,
"radius2": 200,
"geoSRS": "EPSG:4326"
},
{
"viewPoint": {
"type": "Point Z",
"coordinates": [
101.6692602973,
36.5180437853,
2600
]
},
"offsetA": 1.8,
"offsetB": 0,
"azimuth1": 0,
"azimuth2": 120,
"vert1": 40,
"vert2": -40,
"radius1": 0,
"radius2": 500,
"geoSRS": "EPSG:4326"
}
],
"outPutType": 2,
"common": true,
"outDataset": {
"datasourceName": "地形分析",
"datasetName": "dem84_viewshed.tif"
}
}
curl --location --request POST '/rest/services//spatialanalysis/viewshed' \
--header 'Content-Type: application/json' \
--data-raw '{
"dataset": {
"datasourceName": "地形分析",
"datasetName": "dem84.tif"
},
"viewinfos": [
{
"viewPoint": {
"type": "Point Z",
"coordinates": [
101.6745411,
36.5119804,
2449.207
]
},
"offsetA": 1.8,
"offsetB": 0,
"azimuth1": 0,
"azimuth2": 120,
"vert1": 40,
"vert2": -40,
"radius1": 0,
"radius2": 200,
"geoSRS": "EPSG:4326"
},
{
"viewPoint": {
"type": "Point Z",
"coordinates": [
101.6692602973,
36.5180437853,
2600
]
},
"offsetA": 1.8,
"offsetB": 0,
"azimuth1": 0,
"azimuth2": 120,
"vert1": 40,
"vert2": -40,
"radius1": 0,
"radius2": 500,
"geoSRS": "EPSG:4326"
}
],
"outPutType": 2,
"common": true,
"outDataset": {
"datasourceName": "地形分析",
"datasetName": "dem84_viewshed.tif"
}
}'
{
"resultcode": "success",
"time": 0.343,
"result": {
"datasetName": "s_viewshed_48ba8fa1144640939a944f75e1682265"
}
}