使用产品:iserver 11c
问题详细描述:我先利用sql数据查询服务获得feature,再利用sql查询得到的几何范围做集合查询,传入geometry时报错:
调用代码如下:
queryByGeometry(geo){
var geometryParam = new L.supermap.GetFeaturesByGeometryParameters({
datasetNames: [this.GridConfigList[0].children[0].title],
geometry: geo,//polygon,
spatialQueryMode: "CONTAIN"
});
console.log(geometryParam.geometry)
new L.supermap
.FeatureService(this.GridConfigList[0].children[0].url)
.getFeaturesByGeometry(geometryParam, function (serviceResult) {
if (!serviceResult || serviceResult.error) {
reject(serviceResult && serviceResult.error);
} else {
resolve(serviceResult.result);
}
});
}