{
"datasourceName":"china",
"datasetName":"road",
"fromIndex": 0, // 前面19个要素
"toIndex":19,
"returnContent":true, // true时返回要素集合
"hasGeometry":false
}
curl --location --request POST '/rest/services//data/featurelist' \
--header 'Content-Type: application/json' \
--data-raw '{
"datasourceName":"china",
"datasetName":"road",
"fromIndex": 0, // 前面19个要素
"toIndex":19,
"returnContent":true, // true时返回要素集合
"hasGeometry":false
}'
{
"resultcode": "success", //返回结果代码,”success”表示成功,”error”表示失败
"result":
{
"featureIDs":[id1,id2],//返回ID集合,配合id获取要素集合,
"featureCount":186,//要素集中要素的总数量。
"geometryType":"Line",//几何类型,对应几何对象枚举
"startID":0 //要素集合中要素的起始位置,其值与请求时设置的 fromIndex 可能相等,除非中间有删除过此ID的要素
}
}