Constructor
new BufferAnalysis()
Members
(static) CAP_BUTT
    Constant: GeoGlobe.Analysis.BufferAnalysis.CAP_ROUND
{Integer} 平角缓冲区端点。
        
            
(static) CAP_ROUND
    Constant: GeoGlobe.Analysis.BufferAnalysis.CAP_ROUND
{Integer} 圆形缓冲区端点。
        
            
(static) CAP_SQUARE
    Constant: GeoGlobe.Analysis.BufferAnalysis.CAP_ROUND
{Integer} 矩形缓冲区端点。
        
            
accuracy :int
    缓冲的拟合精度。默认值为32。
    Type:
- int
 
type :int
    缓冲区的端点类型,默认值为GeoGlobe.Analysis.BufferAnalysis.CAP_ROUND。
可以为GeoGlobe.Analysis.BufferAnalysis.CAP_ROUND、GeoGlobe.Analysis.BufferAnalysis.CAP_BUTT、
GeoGlobe.Analysis.BufferAnalysis.CAP_SQUARE三者之一。
    Type:
- int
 
url :String
- Default Value:
 - null
 
    缓冲分析操作所需要的WPS服务地址
    Type:
- String
 
Methods
_meterToDegree(meter, lonlat)
    根据地理坐标位置,将米转换成经纬度。
参数:
    Parameters:
| Name | Type | Description | 
|---|---|---|
meter | 
            
            string | 要转换的地理坐标。 | 
lonlat | 
            
            string | 经纬度。 | 
initialize(url, options)
    GeoGlobe.Analysis.BufferAnalysis类构造函数。
    Parameters:
| Name | Type | Description | 
|---|---|---|
url | 
            
            String | WPS服务地址。 | 
options | 
            
            Object | 相关属性的设置项,可选。 | 
startAnalysis(geojson, distance, unit-)
    开始执行分析,如果服务端正确返回结果会触发successFn回调函数。
    Parameters:
| Name | Type | Description | 
|---|---|---|
geojson | 
            
            GeoJSON | 要分析的要素。 | 
distance | 
            
            Integer | 缓冲半径。 | 
unit- | 
            
            String | 长度计量单位。取值"m","km","degree",可选,默认值为"m"。 Example: (code) //绘制一个被缓冲的中心点 var point = { "type": "Feature", "geometry": { "type": "Point", "coordinates": [105,35] } }; var geojsonPoint = { "type": "FeatureCollection", "features": [point] }; //设置缓冲距离500米 var distance = 500; //缓冲单位 var unit = "m"; //开始缓冲分析 ba.startAnalysis(geojsonPoint, distance, unit); (end) | 
successFn(features)
    缓冲分析操作成功的回调函数,由用户使用自己定义的方法替代。
    Parameters:
| Name | Type | Description | 
|---|---|---|
features | 
            
            Array(GeoGlobe.Feature) | 结果要素数组。 |