Class: SpatialAnalystService

ol.supermap.SpatialAnalystService

The SpatialAnalystService class. This class provides: regional solar radiation analysis, buffer analysis service, density analysis, generate spatial data, geo relation analysis, interpolation analysis, raster algebraic calculation, overlay analysis, route measurement calculation, route location calculation, surface analysis, terrain curvature calculation, thiessen polygon analysis.

new ol.supermap.SpatialAnalystService(url, options)

SpatialAnalystService.js, line 23
Name Type Description
url string

The url of service.

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

serverType ol.supermap.ServerType ol.supermap.ServerType.ISERVER optional

Type of server iServer|iPortal|online.

withCredentials boolean false optional

Request whether to carry a cookie.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Example
new ol.supermap.SpatialAnalystService(url)
     .bufferAnalysis(params,function(result){
         //doSomething
     })

Extends

Methods

bufferAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 70

Buffer analysis service.

Name Type Default Description
params ol.supermap.DatasetBufferAnalystParameters

The DatasetBufferAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

densityAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 93

Density analysis service.

Name Type Default Description
params ol.supermap.DensityKernelAnalystParameters

The DensityKernelAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

generateSpatialData(params, callback, resultFormat)

SpatialAnalystService.js, line 116

Generate spatial data service.

Name Type Default Description
params ol.supermap.GenerateSpatialDataParameters

The GenerateSpatialDataParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

geometrybatchAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 346

Batch space analysis service.

Name Type Default Description
params Array

Batch analysis of parameter object arrays.

Name Type Description
analystName Array.<Object>

The name of the spatial analysis method. include:
"buffer","overlay","interpolationDensity","interpolationidw","interpolationRBF","interpolationKriging","isoregion","isoline"。

param Object

The request parameter corresponding to the spatial analysis type, include:
{ol.supermap.GeometryBufferAnalystParameters} Buffer analysis parameter class.
{ol.supermap.GeometryOverlayAnalystParameters} Overlay analysis parameter class.
{ol.supermap.InterpolationAnalystParameters} Interpolation analysis parameter class.
{ol.supermap.SurfaceAnalystParameters} Surface analysis parameter class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

geoRelationAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 139

Geo relation analysis service.

Name Type Default Description
params ol.supermap.GeoRelationAnalystParameters

The GeoRelationAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

getAreaSolarRadiationResult(params, callback, resultFormat)

SpatialAnalystService.js, line 47

Regional solar radiation analysis service.

Name Type Default Description
params ol.supermap.AreaSolarRadiationParameters

The AreaSolarRadiationParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

interpolationAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 162

The Interpolation analysis service.

Name Type Default Description
params ol.supermap.InterpolationRBFAnalystParameters

The InterpolationRBFAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

mathExpressionAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 185

Raster algebraic calculation service

Name Type Default Description
params ol.supermap.MathExpressionAnalysisParameters

The MathExpressionAnalysisParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

overlayAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 208

Overlay analysis service.

Name Type Default Description
params ol.supermap.DatasetOverlayAnalystParameters | ol.supermap.GeometryOverlayAnalystParameters

The DatasetOverlayAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

routeCalculateMeasure(params, callback, resultFormat)

SpatialAnalystService.js, line 231

Route measurement calculation service

Name Type Default Description
params ol.supermap.RouteCalculateMeasureParameters

The RouteCalculateMeasureParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

routeLocate(params, callback, resultFormat)

SpatialAnalystService.js, line 254

Route location calculation service.

Name Type Default Description
params ol.supermap.RouteLocatorParameters

The RouteLocatorParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

surfaceAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 277

Surface Analysis service.

Name Type Default Description
params ol.supermap.SurfaceAnalystParameters

The DatasetSurfaceAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

terrainCurvatureCalculate(params, callback, resultFormat)

SpatialAnalystService.js, line 300

Terrain curvature calculation service.

Name Type Default Description
params ol.supermap.TerrainCurvatureCalculationParameters

The TerrainCurvatureCalculationParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.

thiessenAnalysis(params, callback, resultFormat)

SpatialAnalystService.js, line 323

Thiessen analysis service.

Name Type Default Description
params ol.supermap.DatasetThiessenAnalystParameters

The DatasetThiessenAnalystParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat ol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional

The format of result data.