三维缓冲区分析的距离单位是什么,我看示例中是度,API中又说是米。具体怎么设置单位,我们需求可能需要具体到米或公里。
1 以下是示例代码说单位是度:
var bufferServiceByGeometry = new SuperMap.REST.BufferAnalystService(analyzeUrl),
bufferDistance = new SuperMap.REST.BufferDistance({
value: 0.01//单位是度(默认为地图投影的单位)
}),
bufferSetting = new SuperMap.REST.BufferSetting({
endType: SuperMap.REST.BufferEndType.ROUND,
leftDistance: bufferDistance,
rightDistance: bufferDistance,
semicircleLineSegment: 10
}),
geoBufferAnalystParam = new SuperMap.REST.GeometryBufferAnalystParameters({
sourceGeometry: sourceGeometry,
bufferSetting: bufferSetting
});
2 以下是supermapAPI说是米:http://www.wctdt.com/iserver/iClient/forJavaScript/apidoc/files/SuperMap/REST/SpatialAnalyst/BufferDistance-js.html