Constructor
    
    new GeoEntityAnalysis()
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
         
    
    
    
    
    
    
     
    
    
        Members
        
            
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    返回的数据格式
    Type:
    
        
            
url :String
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    地理实体计算分析服务地址
    Type:
    
        
    
    
        Methods
        
            
    
    bufferAnalysis(geojson, options, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    缓冲分析接口。
    Example
    
    alyObj.bufferAnalysis(geojson, otherGeojson);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                geojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]geojson要素或者geojson数组 | 
        
    
        
            
                options | 
            
            
            
                
Object
            
             | 
            
            
            缓冲分析的参数集合
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
     
    
    
    
        
            
                distance | 
            
            
            
                
Number
            
             | 
            
            
            [可选]距离,默认0.02 | 
         
    
        
            
                unit | 
            
            
            
                
String
            
             | 
            
            
            [可选]单位,默认为:"m",可选值包含:"m","km","degree"; | 
         
    
        
            
                bufferType | 
            
            
            
                
Number
            
             | 
            
            
            [可选]缓冲区的端点类型,默认值为1,可选值:1、2、3 | 
         
    
        
            
                bufferAccuracy | 
            
            
            
                
Number
            
             | 
            
            
            [可选]缓冲的拟合精度。默认值为32. | 
         
    
    
 
             | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    coverageRateAnalysis(inputGeojson, otherGeojson, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    覆盖率分析接口。
    Example
    
    alyObj.coverageRateAnalysis(inputGeojson, inputGeojson);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                inputGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]覆盖率的第一个geojson | 
        
    
        
            
                otherGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]覆盖率的第二个geojson | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    differenceAnalysis(inputGeojson, otherGeojson, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    求差分析接口。
    Example
    
    alyObj.differenceAnalysis(inputGeojson, inputGeojson);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                inputGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求差的第一个geojson | 
        
    
        
            
                otherGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求差的第二个geojson | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    exposureAnalysis(options, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    坡向分析接口。
    Example
    
    alyObj.exposureAnalysis(options);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                options | 
            
            
            
                
Object
            
             | 
            
            
            坡向分析的参数集合
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
     
    
    
    
        
            
                demTif | 
            
            
            
                
String
            
             | 
            
            
            [必选]地形文件网络地址 | 
         
    
        
            
                gridSize | 
            
            
            
                
Number
            
             | 
            
            
            [可选]格网大小,默认90 | 
         
    
        
            
                resampleMode | 
            
            
            
                
Number
            
             | 
            
            
            [可选]重采样模式,默认为0,可选值:0-7 | 
         
    
        
            
                geojson | 
            
            
            
                
Object
            
             | 
            
            
            [可选]采样范围 | 
         
    
    
 
             | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    getAreaAnalysis(geojson, epsg, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    面积分析接口。
    Example
    
    alyObj.getAreaAnalysis(geojson, endPos);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                geojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]面要素 | 
        
    
        
            
                epsg | 
            
            
            
                
Number
            
             | 
            
            
            [可选]epsg编号,默认4490 | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    getLengthAnalysis(inputGeojson, otherGeojson, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    长度分析接口。
    Example
    
    alyObj.getLengthAnalysis(startPos, endPos);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                inputGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]第一个点 | 
        
    
        
            
                otherGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]第二个点 | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    initialize(url, options)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    初始化
GeoGlobe.Analysis.GeoEntityAnalysis
    Example
    
    var alyObj = new GeoGlobe.Analysis.GeoEntityAnalysis('http://192.168.101.59:83/geostar/js_13/gcs/Execute', {
outputFormat: 'json',
function(e){
			//TODO success
		},function(e){
			//TODO faile
		}
		});
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                url | 
            
            
            
                
String
            
             | 
            
            
            GCS服务地址。 | 
        
    
        
            
                options | 
            
            
            
                
Object
            
             | 
            
            
            相关属性的设置项。
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
     
    
    
    
        
            
                outputFormat | 
            
            
            
                
Object
            
             | 
            
            
            [可选]返回的数据格式,默认为gml,可选值为:GML、GEOJSON | 
         
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数。 | 
         
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数。 | 
         
    
    
 
             | 
        
    
    
        
            
    
    intersectionAnalysis(inputGeojson, otherGeojson, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    求交分析接口。
    Example
    
    alyObj.intersectionAnalysis(inputGeojson, otherGeojson);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                inputGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求交的第一个geojson | 
        
    
        
            
                otherGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求交的第二个geojson | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    isoheightAnalysis(options, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    等高线分析接口。
    Example
    
    alyObj.isoheightAnalysis(options);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                options | 
            
            
            
                
Object
            
             | 
            
            
            等高线分析的参数集合
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
     
    
    
    
        
            
                demTif | 
            
            
            
                
String
            
             | 
            
            
            [必选]地形文件网络地址 | 
         
    
        
            
                elevationArray | 
            
            
            
                
String
            
             | 
            
            
            [可选]第一个值为基础高度,后面的依次是间距,单位米,与baseHeight和interval互斥(选择一种即可) | 
         
    
        
            
                baseHeight | 
            
            
            
                
Number
            
             | 
            
            
            [可选]基础高度,单位米 | 
         
    
        
            
                interval | 
            
            
            
                
Number
            
             | 
            
            
            [可选]间距,单位米 | 
         
    
    
 
             | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    slopeAnalysis(options, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    坡度分析接口。
    Example
    
    alyObj.slopeAnalysis(options);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                options | 
            
            
            
                
Object
            
             | 
            
            
            坡度分析的参数集合
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
     
    
    
    
        
            
                demTif | 
            
            
            
                
String
            
             | 
            
            
            [必选]地形文件网络地址 | 
         
    
        
            
                gridSize | 
            
            
            
                
Number
            
             | 
            
            
            [可选]格网大小,默认90 | 
         
    
        
            
                resampleMode | 
            
            
            
                
Number
            
             | 
            
            
            [可选]重采样模式,默认为0,可选值:0-7 | 
         
    
        
            
                geojson | 
            
            
            
                
Object
            
             | 
            
            
            [可选]采样范围 | 
         
    
    
 
             | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    successFn(features)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    缓冲分析操作成功的回调函数,由用户使用自己定义的方法替代。
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                features | 
            
            
            
                
Array(GeoGlobe.Feature)
            
             | 
            
            
            结果要素数组。 | 
        
    
    
        
            
    
    topologyAnalysis(inputGeojson, otherGeojson, relationType, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    拓扑分析接口。
    Example
    
    alyObj.topologyAnalysis(inputGeojson, inputGeojson, relationType);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                inputGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求差的第一个geojson | 
        
    
        
            
                otherGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求差的第二个geojson | 
        
    
        
            
                relationType | 
            
            
            
                
String
            
             | 
            
            
            [必选]关系类型,可选值:Equals(相等), Disjoint(脱节), Intersects(相交), Touches(接触), Crosses(交叉), Within(内含), Contains(包含), Overlaps(重叠) | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 | 
        
    
    
        
            
    
    unionAnalysis(inputGeojson, otherGeojson, successFn, failFn)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    求并分析接口。
    Example
    
    alyObj.unionAnalysis(inputGeojson, otherGeojson);
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                inputGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求并的第一个geojson | 
        
    
        
            
                otherGeojson | 
            
            
            
                
Object
            
             | 
            
            
            [必选]求并的第二个geojson | 
        
    
        
            
                successFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求成功的回调函数,若没有声明,则调用初始化是的成功函数。 | 
        
    
        
            
                failFn | 
            
            
            
                
function
            
             | 
            
            
            [可选]请求失败的回调函数,若没有声明,则调用初始化是的失败函数。 |