求审核大大通过,要是有问题请及时打回,这样吊着很难受(°ー°〃)
使用产品:iserver-10.0.1 操作系统:win10 x64
数据类型:smwu
问题描述:运行计算缓冲区函数时未出现结果,控制台显示“Failed to load resource: the server responded with a status of 404 ()”
问题重现步骤:1.点击“致死区域”按钮 2.控制台报错
html部分源码:
控制台报错内容:
function LethalArea(){
var serviceUrl = "http://localhost:8090/iserver/services/spatialAnalysis-EmergWS/restjsr/spatialanalyst/datasets/Chemical_Factory@Chemical_Factory";
dsBufferAnalystService = L.supermap.spatialAnalystService(serviceUrl);
dsBufferAnalystParams = new SuperMap.DatasetBufferAnalystParameters({
dataset: "Chemical_Factory@Chemical_Factory",
// 设置数据集中集合对象的过滤条件
filterQueryParameter: new SuperMap.FilterParameter({
// 属性过滤条件
attributeFilter: "Name='铝业化工厂'"
}),
bufferSetting: new SuperMap.BufferSetting({
endType: SuperMap.BufferEndType.ROUND,
leftDistance: {value: 100},
semicircleLineSegment: 10
})
});
dsBufferAnalystService.bufferAnalysis(dsBufferAnalystParams,function(serviceResult) {
var result = serviceResult.result;
console.log(result);
resultLayer = L.geoJSON(result.recordset.features, {color: "red"}).addTo(map);
});
}