bufferAnalystProcess();
function bufferAnalystProcess() {
dsBufferAnalystService = L.supermap.spatialAnalystService(serviceUrl);
dsBufferAnalystParameters = new SuperMap.DatasetBufferAnalystParameters({
dataset: "weixiandian@shixiditu",
filterQueryParameter: new SuperMap.FilterParameter({
attributeFilter: "SmUserID = 0"
}),
bufferSetting: new SuperMap.BufferSetting({
endType: SuperMap.BufferEndType.ROUND,
leftDistance: {
value: 50
},
semicircleLineSegment: 10
})
});
dsBufferAnalystService.bufferAnalysis(dsBufferAnalystParameters, function(serviceResult) {
var result = serviceResult.result;
resultLayer = L.geoJSON(result.recordset.features, {
color: "red"
}).addTo(map);
//查询
queryService = L.supermap.queryService(baseurl);
queryByGeometryParameters = new SuperMap.QueryByGeometryParameters({
queryParams: [new SuperMap.FilterParameter({
name: "student@shixiditu"
})],
geometry: resultLayer,
spatialQueryMode: SuperMap.SpatialQueryMode.INTERSECT
});
queryService.queryByGeometry(queryByGeometryParameters, function(serviceResult) {
var result = serviceResult.result;
resultLayer1 = L.geoJSON(result.recordsets[0].features).addTo(map);
});
});
}
我是用了示例代码里的数据集缓冲区分析构建的缓冲区,几何对象缓冲区分析进行的查询
结果一直出错