首页 / 浏览问题 / WebGIS / 问题详情
the number of 'fieldNames' and 'fieldValues' are not equal or Geometry is null
1EXP 2024年03月27日
按照api文档http://support.supermap.com.cn/DataWarehouse/WebDocHelp/iServer/index.htm 添加请求头 X-RequestEntity-ContentType: application/geojson 添加要素时,报错提示the number of 'fieldNames' and 'fieldValues' are not equal or Geometry is null { "succeed": false, "error": { "code": 500, "errorMsg": "the number of 'fieldNames' and 'fieldValues' are not equal or Geometry is null" } }

1个回答

您好,您可以在iServer中打开这个数据集的其他feature,获取它们的rjson格式,比如“https://iserver.supermap.io/iserver/services/data-world/rest/data/feature/0-3-0.rjson?hasGeometry=true”,根据其他feature的格式进行修改参数,再进行传参,确保字段类型和字段值格式一致。

通过iServer API添加要素的操作可以参考博客:https://blog.csdn.net/supermapsupport/article/details/135087073

446EXP 2024年03月27日
...