{
"datasourceName": "china",
"datasetName": "road",
"ids": [
"id1",
"id2"
]
}
curl --location --request POST '/rest/services//data/featurebyIDs' \
--header 'Content-Type: application/json' \
--data-raw '{
"datasourceName": "china",
"datasetName": "road",
"ids": [
"id1",
"id2"
]
}'
{
"resultcode": "success",//返回结果代码,”success”表示成功,”error”表示失败
"result":
{
"features":{featureCollection object},//返回要素集合
"featureCount":186,//要素集中要素的总数量。
"geometryType":"Line",//几何类型,对应几何对象枚举
"startID":0 //要素集合中要素的起始ID
}
}