ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 说明 执行空间分析操作(仅支持叠加分析),空间参考来自于ESRIJSON数据 ## 对于统计字段值的说明 ``` 字段名称 有效性 字段说明 code 一维、二维 代码 name 一维、二维 名称 value 一维、二维 数值:对于一维统计,该值为压盖到的面积(面积) showValue 一维、二维 数值:对于一维统计,该值为压盖到的面积(显示面积) subArea 二维(仅二级节点) 数值:对于二维统计,该值为压盖到的子类面积之和 percentTxmj 一维、二维 百分比:占上输入图形面积的百分比,比如:输入1000平方米,压盖到建设用地700米,建设用地的百分比为0.7 percentYgmj 一维、二维 百分比:占上压盖图斑面积的百分比,比如:输入1000平方米,压盖到建设用地700米,在这700中的百分比 ``` ## 1\. 入参 ``` { "exetype": "ANALYSIS_BY_MAPSERVER", "config": { "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": { "stcName": "土地利用现状", "maxArea": 1000, //最大统计面积 "stcUrl": "http://188.33.2.19:8399/arcgis/rest/services/ZTT/TDLYXZ2018/MapServer/2", "idField": "OBJECTID", "sr": "cgcs2000geo ",//取值范围 xiamen92 cgcs2000geo xiamen92 daxiamen92 "apiType": 2, //二维统计 "token": "", "stcMap": { "isGroupFieldKPEnabled": 1, "groupField1": "ZLDWMC", "groupField2": "DLBM", "groupFieldKP": [ { "key": "011", "value": "水田" } ], "whereClause": "1=1", "stcPara": { "stcName": "土地利用现状2018压盖分析", "stcField": "__SHAPE.AREA", "stcType": "max", //max min count sum average "title": "土地利用现状统计图", "subtitle": "", "footnote": "", "unit": "平方米", "tableHead": [ { "title": "名称", "fieldName": "name", "align": "center" }, { "title": "面积/平方米", "fieldName": "value", "align": "center" }, { "title": "百分比", "fieldName": "percentTxmj", "align": "center" } ] "subTableHead": [ { "title": "编码", "fieldName": "code", "align": "center" }, { "title": "名称", "fieldName": "name", "align": "center" }, { "title": "面积/平方米", "fieldName": "showValue", "align": "center" }, { "title": "百分比", "fieldName": "percentTxmj", "align": "center" } ] } } } } } ``` ## 2\. 响应体 ``` { "code": 200, "success": true, "message": "操作成功。", "timestamp": "1644856390", "result": { "tmapCode": "tile_1235", "stcName": "XXXX统计", "stcField": "__SHAPE.AREA", "stcType": 4, "title": "土地利用现状2018压盖分析", "subtitle": "土地利用现状统计图", "footnote": "", "unit": "平方米", "tableHead": [ { "title": "名称", "fieldName": "name", "align": "center" }, { "title": "面积/平方米", "fieldName": "subArea", "align": "center" }, { "title": "百分比", "fieldName": "percentTxmj", "align": "center" } ], "subTableHead": [ { "title": "编码", "fieldName": "code", "align": "center" }, { "title": "名称", "fieldName": "name", "align": "center" }, { "title": "面积/平方米", "fieldName": "showValue", "align": "center" }, { "title": "百分比", "fieldName": "percentTxmj", "align": "center" } ], "data": [ { "name": "名称:筼筜湖 (44753.25平方米)", "value": 44753.25, "percentTxmj": "50%", "percentYgmj": "30%", "subItems": [ { "code": "033", "name": "其他林地", "value": 10740.26, "showValue": "10740.26", "percentTxmj": "50%", "percentYgmj": "30%", "geometrys": [ { "geometryType": "esriGeometryPolygon", "geometriy": { "rings": [ [ [ 60713.887500000186, 9593.1390000004321 ], [ 60756.411199999973, 9507.7865999992937 ], [ 60713.887500000186, 9593.1390000004321 ] ] ] } } ] } ] } ], "totalArea": 231075.44, "inputTxArea": 231075.44, "dataType": 2 } } ``` ## 2\. 响应体(失败的情况) ``` { "code": 200, "success": true, "message": "操作成功。", "timestamp": "1644856390", "result": { "error": "" } } ```