你好,线面相交进行相交分析时,为啥总是提示叠加的类型不对呢
var test1=L.polygon([[38,117],[38,118],[36,118],[36,117],[38,117]],{color:'yellow'}).addTo(map);
var test2=L.polyline([[37,116],[37,119]],{color:'yellow'}).addTo(map);
var geometryOverlayAnalystParameters = new SuperMap.GeometryOverlayAnalystParameters({
operateGeometry:test1,//面
sourceGeometry:test2,//线
operation: SuperMap.OverlayOperationType.INTERSECT
});
// console.log(geometryOverlayAnalystParameters);
L.supermap.spatialAnalystService("http://localhost:8090/iserver/services/spatialAnalysis-xiaoqinghe/restjsr/spatialanalyst").overlayAnalysis(geometryOverlayAnalystParameters,function(serviceResult){
console.log(serviceResult);
var resultLayer6=L.geoJSON(serviceResult.result.recordset.features, {color: 'red'}).addTo(map);
});