首页 / 浏览问题 / 云GIS / 问题详情
几何查询,geometry传参报错
110EXP 2026年01月14日

iServer12,基于data服务进行几何查询,geometry传参为几何点,目前仅有使用new ol.supermap.Geometry.Point(e.coordinate[0], e.coordinate[1])不会报错,传入{"id":0,"style":null,"parts":[1],"points":[{"x":119.91805294456832,"y":29.957552570403177}],"type":"POINT"}或者geoJson对象,都会报错,Uncaught TypeError: e.getVertices is not a function。但是在iserver上通过featureResults资源查询,传入{"id":0,"style":null,"parts":[1],"points":[{"x":119.91805294456832,"y":29.957552570403177}],"type":"POINT"}就不会报错,可以请求成功,不知道为什么是什么问题?开发包使用的是最新版本的supermap-iclient-javascript-2025u1,ol包。

登录 或者 注册 后回答这个问题。

...