ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**## 说明 根据地图服务进行数据统计 注意:出入参均和arcgis rest api 保持一致 ## 1\. 入参 ``` { "exetype": "STATISTIC_BY_MAPSERVER", //根据地图服务地址进行数据统计 "config": { "mapUrl":"http://www.xxxxxx.com/arcgis/rest/services//map/MapServer/1", "token":"", "geometryType": "esriGeometryPolygon", //几何类型,只支持面状要素 "geometry": { //面状要素 "rings": [ [ [ 118.152546079071, 24.530251659361 ], [ 118.153004736813, 24.5310107245122 ], [ 118.152843804272, 24.5301068200741 ], [ 118.152578265579, 24.5301282777463 ], [ 118.152578265579, 24.5301282777463 ], [ 118.152546079071, 24.530251659361 ] ] ] }, "stcSetting": { //统计配置参数 "where": "OBJECTID>0", "groupByFieldsForStatistics": "MC", //统计分组字段 "outStatistics": [ { "statisticType": "count", //统计类型 count(数量) | sum(合计) | min(最小值) | max(最大值) | avg(平均值) | stddev(标准偏差) | var(方差) "onStatisticField": "MJ", "outStatisticFieldName": "MJ_VALUE" }, { "statisticType": "sum", "onStatisticField": "SL", "outStatisticFieldName": "SL_VALUE" } ] } } } ``` ## 2\. 响应体(成功的情况) ``` { "code": 200, "success": true, "message": "", "timestamp": 123123123, "result": { "features": [ { "attributes": { "MC": "湖里区", "MJ_VALUE": 3, "SL_VALUE": 3 } }, { "attributes": { "MC": "海沧区", "MJ_VALUE": 3, "SL_VALUE": 3 } } ] } } ``` ## 2\. 响应体(成功的情况) ``` { "code": 500, "success": true, "message": "", "timestamp": 123123123, "result": { "error": { "code": 400, "message": "Invalid or missing input parameters.", "details": [] } } } ```