Class: InterpolationIDWAnalystParameters

SuperMap.InterpolationIDWAnalystParameters

The InterpolationIDWAnalystParameter class。

new SuperMap.InterpolationIDWAnalystParameters(options)

InterpolationIDWAnalystParameters.js, line 5
Name Type Description
options Object

The parameters.

Name Type Default Description
power number 2 optional

The specified power of the weight distance.

bounds SuperMap.Bounds | L.Bounds | ol.extent

The range of the interpolation analysis which is used to determine the range of the result raster dataset.

searchMode string

The search mode for interpolating includes fixed point number and fixed length search. Required.

expectedCount number 12 optional

[Fixed Point Number Search] Sets the number of the points to be looked up, i.e., the point number involved in the difference operation.

searchRadius number 0 optional

[Fixed Length Search] Search radius is the search scope of points in the operation, whose unit is identical to that of the point dataset.

zValueFieldName string optional

Stores the field name whose value is used in the interpolation analysis.The field of text type is not supported by interpolation analysis. When the interpolation analysis type (InterpolationAnalystType) is dataset, it is a required parameter.

zValueScale number 1 optional

The zoom scale of the value to be interpolated.

resolution number optional

The resolution of the raster dataset of the interpolation result, the actual distance denoted by a cell, has the same unit with that of the point dataset.

filterQueryParameter SuperMap.FilterParameter optional

Attribute filter criteria.

outputDatasetName string

The name of the interpolation analysis result dataset.

outputDatasourceName string

The name of the result datasource in the interpolation analysis.

pixelFormat string optional

Specifies the pixel format of the output grid dataset.

dataset string optional

The name of the dataset in the datasource for interpolation analysis. This identifier is the format "dataset name@datasource alias". When the InterpolationAnalystType is dataset, it is required.

inputPoints Array.<(SuperMap.Geometry.Point|L.LatLng|L.Point|ol.geom.Point)> optional

The discrete point set used in the interpolation analysis. When the InterpolationAnalystType is geometry, it is required.

Example
var myInterpolationIDWAnalystParameters = new SuperMap.InterpolationIDWAnalystParameters({
     dataset:"SamplesP@Interpolation",
     power: 2,
     searchMode: "KDTREE_FIXED_COUNT",
     expectedCount: 12,
     pixelFormat: "BIT16",
     zValueFieldName: "AVG_TMP",
     resolution: 3000,
     filterQueryParameter: {
         attributeFilter: ""
     },
     outputDatasetName: "myIDW"
});

Extends

Members

boundsSuperMap.Bounds L.Bounds ol.extent

The range of the interpolation analysis which is used to determine the range of the result raster dataset. If default, then it is the range of the source dataset. Since this is a method of interpolation, the parameter is better less than or equal to the range of the source dataset.

clipParamObject

The parameter to clip the interpolation analysis result.

datasetstring

The name of the dataset in the datasource for interpolation analysis. This identifier is the format "dataset name@datasource alias".
When the InterpolationAnalystType is dataset, it is required.

expectedCountnumber

[Fixed Point Number Search] Sets the number of the points to be looked up, i.e., the point number involved in the difference operation.

Default Value:
12

filterQueryParameterSuperMap.FilterParameter

The property filter condition.The default is null, meaning analysis all points in the dataset

inputPointsArray.<(SuperMap.Geometry.Point|L.LatLng|L.Point|ol.geom.Point)>

he discrete point (Z values included) set used in the interpolation analysis. When the InterpolationAnalystType is geometry, it is required. There is no need to specify the datasets inputDatasourceName, inputDatasetName and zValueFieldName through discrete data interpolation analysis.

InterpolationAnalystTypestring

InterpolationAnalystType. The interpolation contains dataset interpolation and the geometry interpolation. "dataset" represents the dataset interpolation; "geometry" represents discrete data interpolation. Default value is "dataset".

Default Value:
"dataset"

outputDatasetNamestring

The name of the interpolation analysis result dataset.

outputDatasourceNamestring

The name of the interpolation analysis result datasource.

Specifies the pixel format of the output grid dataset. The supported pixel format is: BIT16, BIT32, DOUBLE, SINGLE, UBIT1, UBIT4, UBIT8, UBIT24, and UBIT32.

powernumber

The specified power of the weight distance. This value determines the decline rate of the weight. The greater the power, the faster the weight decreases with the increasing distance. And hence, the farther the point is from the predicted point, the smaller the weight of the point. Theoretically, the parameter must be greater than 0, but the result between 0.5 and 3 is more reasonable.

Default Value:
2

resolutionnumber

The resolution of the raster dataset of the interpolation result, the actual distance denoted by a cell, has the same unit with that of the point dataset. This value cannot be larger than the length of the bounds to be analyzed. The setting of this value should depend on the dataset extent. If the value of the cell (result_dataset_extent/resolution) is less than 500, this value will better show the trend of the density.

The search mode for interpolating includes fixed point number and fixed length search. Details As Follows: {KDTREE_FIXED_COUNT} finds points involved in the interpolation analysis with the KDTREE fixed point number way. {KDTREE_FIXED_RADIUS} finds points involved in the interpolation analysis with the KDTREE fixed length way.

searchRadiusnumber

Search radius is the search scope of points in the operation, whose unit is identical to that of the point dataset. When calculating the Z value of a location (the default value is 0), the sampling points within the range whose radius is the value of the search extent will involve in the operation. Users need to set this value according to the distribution of points to be interpolated and the extent of the dataset.

zValueFieldNamestring

In the dataset interpolation analysis, The field name whose value is used in the interpolation analysis. The field of text type is not supported by interpolation analysis. It refers to the weight of each sampling point. You can set all of this field value to 1. In this case, all points have the same weight. When the InterpolationAnalystType is dataset, required.

zValueScalenumber

The zoom scale of the value to be interpolated whose default value is 1. Specifies the zoom scale of the value to be interpolated.

Default Value:
1

Methods

destroy()

InterpolationIDWAnalystParameters.js, line 75

Disposes the resource. The property that references resource is set to null.