想通过SuperMap.GeometrySurfaceAnalystParameters类进行离散点的表面分析得到等值面,
运行弹出错误“不是正常的json格式”
代码如下
surfaceAnalystParameters = new SuperMap.GeometrySurfaceAnalystParameters({
extractParameter: new SuperMap.SurfaceAnalystParametersSetting({
datumValue: 0,
resampleTolerance: 0,
smoothMethod: SuperMap.SmoothMethod.BSPLINE,
smoothness: 3,
clipRegion: null
}),
points:shuzu,
zValues:0,
surfaceAnalystMethod:SuperMap.SurfaceAnalystMethod.ISOLINE
});
surfaceAnalystService = L.supermap.spatialAnalystService(serviceUrl);
surfaceAnalystService.surfaceAnalysis(surfaceAnalystParameters, function (serviceResult) {
var result = serviceResult.result;
console.log(result)
if (result && result.recordset && result.recordset.features) {
resultLayer = L.geoJSON(result.recordset.features, {weight: 3}).addTo(map);
} else {
alert(serviceResult.error.errorMsg);
}
});
有什么地方错了麻烦指出