Skip to content

Commit c8c8555

Browse files
committed
【fix】 修复缺陷ICL-1386; distance 属性; review by qiwei
1 parent 4c4e103 commit c8c8555

9 files changed

+23
-24
lines changed

src/common/iServer/ChartQueryParameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {ChartQueryFilterParameter} from './ChartQueryFilterParameter';
1414
* @param {string} options.queryMode - 海图查询模式类型,支持两种查询方式:海图属性查询("ChartAttributeQuery")和海图空间查询("ChartBoundsQuery")。
1515
* @param {Array.<string>} options.chartLayerNames - 查询的海图图层的名称。
1616
* @param {Array.<ChartQueryFilterParameter>} options.chartQueryFilterParameters - 海图查询过滤参数。包括:物标代码、物标可应用对象的选择(是否查询点、线或面)、属性字段过滤条件。
17-
* @param {(SuperMap.Bounds|L.Bounds|L.LatLngBounds|ol.extent|mapboxgl.LngLatBounds|GeoJSONObject)} [options.bounds] - 海图查询范围。当进行海图范围查询时,此参数为必选
17+
* @param {(SuperMap.Bounds|L.Bounds|L.LatLngBounds|ol.extent|mapboxgl.LngLatBounds|GeoJSONObject)} options.bounds - 海图查询范围。当进行海图范围查询时,此为必选参数
1818
* @param {boolean} [options.returnContent=true] - 获取或设置是返回查询结果记录集 recordsets,还是返回查询结果的资源 resourceInfo。
1919
* @param {number} [options.startRecord=0] - 查询起始记录位置。
2020
* @param {number} [options.expectCount] - 期望查询结果返回的记录数,该值大于0。
@@ -34,7 +34,7 @@ export class ChartQueryParameters {
3434
* @member {(SuperMap.Bounds|L.Bounds|L.LatLngBounds|ol.extent|mapboxgl.LngLatBounds|GeoJSONObject)} ChartQueryParameters.prototype.bounds
3535
* @description 海图查询范围。
3636
*/
37-
this.bounds = null;
37+
this.bounds = null;
3838

3939
/**
4040
* @member {Array.<string>} ChartQueryParameters.prototype.chartLayerNames

src/common/iServer/CreateDatasetParameters.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {Util} from '../commontypes/Util';
99
* @category iServer Data Dataset
1010
* @classdesc 数据集创建参数类。
1111
* @param {Object} options - 参数。
12-
* @param {string} options.datasourceName - 数据源名称(必选)
13-
* @param {string} options.datasetName - 数据集名称(必选)
12+
* @param {string} options.datasourceName - 数据源名称,此为必选参数
13+
* @param {string} options.datasetName - 数据集名称,此为必选参数
1414
* @param {string} options.datasetType - 数据集类型。目前支持创建的出聚集类型有:点、线、面、文本、复合(CAD)和属性数据集。
1515
* @usage
1616
*/
@@ -23,15 +23,15 @@ export class CreateDatasetParameters {
2323

2424
/**
2525
* @member {string} CreateDatasetParameters.prototype.datasourceName
26-
* @description 数据源名称。
26+
* @description 数据源名称,此为必选参数
2727
*/
28-
this.datasourceName = null;
28+
this.datasourceName = null;
2929

3030
/**
3131
* @member {string} CreateDatasetParameters.prototype.datasetName
32-
* @description 数据集名称。
32+
* @description 数据集名称,此为必选参数
3333
*/
34-
this.datasetName = null;
34+
this.datasetName = null;
3535

3636
/**
3737
* @member {string} CreateDatasetParameters.prototype.datasetType

src/common/iServer/InterpolationAnalystParameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
* @param {string} options.outputDatasetName - 插值分析结果数据集的名称。
1616
* @param {string} options.outputDatasourceName - 插值分析结果数据源的名称。
1717
* @param {string} [options.zValueFieldName] - 进行插值分析的字段名称,插值分析不支持文本类型的字段。
18-
* @param {string} [options.dataset] - 待分析的数据集名称。当插值分析类型(InterpolationAnalystType)为 dataset 时,此参数为必选
18+
* @param {string} [options.dataset] - 待分析的数据集名称。当插值分析类型(InterpolationAnalystType)为 dataset 时,此为必选参数
1919
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(InterpolationAnalystType)为 geometry 时,此参数为必设参数。
2020
* @param {number} [options.searchRadius=0] - 查找半径,即参与运算点的查找范围,与点数据集单位相同。
2121
* @param {number} [options.zValueScale=1] - 进行插值分析值的缩放比率。
@@ -97,7 +97,7 @@ export class InterpolationAnalystParameters {
9797
/**
9898
* @member {string} [InterpolationAnalystParameters.prototype.dataset]
9999
* @description 用来做插值分析的数据源中数据集的名称,该名称用形如 "数据集名称@数据源别名" 形式来表示。
100-
* 当插值分析类型(InterpolationAnalystType)为 dataset 时,此参数为必选
100+
* 当插值分析类型(InterpolationAnalystType)为 dataset 时,此为必选参数
101101
*/
102102
this.dataset = null;
103103

src/common/iServer/InterpolationDensityAnalystParameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {InterpolationAnalystParameters} from './InterpolationAnalystParameters';
1919
* @param {number} [options.resolution] - 插值结果栅格数据集的分辨率,即一个像元所代表的实地距离,与点数据集单位相同。
2020
* @param {FilterParameter} [options.filterQueryParameter] - 属性过滤条件。
2121
* @param {string} [options.pixelFormat] - 指定结果栅格数据集存储的像素格式。
22-
* @param {string} [options.dataset] - 用来做插值分析的数据源中数据集的名称,该名称用形如 "数据集名称@数据源别名" 形式来表示。当插值分析类型(InterpolationAnalystParameters.prototype.InterpolationAnalystType)为 dataset 时,必设参数
23-
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(InterpolationAnalystParameters.prototype.InterpolationAnalystType)为 geometry 时,必设参数
22+
* @param {string} [options.dataset] - 用来做插值分析的数据源中数据集的名称,该名称用形如 "数据集名称@数据源别名" 形式来表示。当插值分析类型(InterpolationAnalystParameters.prototype.InterpolationAnalystType)为 dataset 时,此为必选参数
23+
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(InterpolationAnalystParameters.prototype.InterpolationAnalystType)为 geometry 时,此为必选参数
2424
* @extends {InterpolationAnalystParameters}
2525
* @example
2626
* var myInterpolationDensityAnalystParameters = new InterpolationDensityAnalystParameters({

src/common/iServer/InterpolationIDWAnalystParameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import {InterpolationAnalystParameters} from './InterpolationAnalystParameters';
2222
* @param {number} [options.resolution] - 插值结果栅格数据集的分辨率,即一个像元所代表的实地距离,与点数据集单位相同。
2323
* @param {FilterParameter} [options.filterQueryParameter] - 属性过滤条件。
2424
* @param {string} [options.pixelFormat] - 指定结果栅格数据集存储的像素格式。
25-
* @param {string} [options.dataset] - 要用来做插值分析的数据源中数据集的名称。该名称用形如”数据集名称@数据源别名”形式来表示。当插值分析类型(SuperMap.InterpolationAnalystType)为 dataset 时,必设参数
26-
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(SuperMap.InterpolationAnalystType)为 geometry 时,必设参数
25+
* @param {string} [options.dataset] - 要用来做插值分析的数据源中数据集的名称。该名称用形如”数据集名称@数据源别名”形式来表示。当插值分析类型(SuperMap.InterpolationAnalystType)为 dataset 时,此为必选参数
26+
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(SuperMap.InterpolationAnalystType)为 geometry 时,此为必选参数
2727
* @extends {InterpolationAnalystParameters}
2828
* @example 例如:
2929
* var myInterpolationIDWAnalystParameters = new InterpolationIDWAnalystParameters({

src/common/iServer/InterpolationKrigingAnalystParameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class InterpolationKrigingAnalystParameters extends InterpolationAnalystP
147147

148148
/**
149149
* @member {SearchMode} InterpolationKrigingAnalystParameters.prototype.searchMode
150-
* @description 插值运算时,查找参与运算点的方式,有固定点数查找、定长查找、块查找。必设参数
150+
* @description 插值运算时,查找参与运算点的方式,有固定点数查找、定长查找、块查找。此为必选参数
151151
* 简单克吕金和泛克吕金不支持块查找。
152152
* 具体如下:<br>
153153
* {KDTREE_FIXED_COUNT} 使用 KDTREE 的固定点数方式查找参与内插分析的点。<br>

src/common/iServer/InterpolationRBFAnalystParameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import {InterpolationAnalystParameters} from './InterpolationAnalystParameters';
2626
* @param {number} [options.resolution] - 插值结果栅格数据集的分辨率,即一个像元所代表的实地距离,与点数据集单位相同。
2727
* @param {FilterParameter} [options.filterQueryParameter] - 属性过滤条件。
2828
* @param {string} [options.pixelFormat] - 指定结果栅格数据集存储的像素格式。
29-
* @param {string} [options.dataset] - 要用来做插值分析的数据源中数据集的名称。该名称用形如”数据集名称@数据源别名”形式来表示。当插值分析类型(InterpolationAnalystType)为 dataset 时。此参数为必选
30-
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(InterpolationAnalystType)为 geometry 时。此参数为必选
29+
* @param {string} [options.dataset] - 要用来做插值分析的数据源中数据集的名称。该名称用形如”数据集名称@数据源别名”形式来表示。当插值分析类型(InterpolationAnalystType)为 dataset 时。此为必选参数
30+
* @param {Array.<GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>>} [options.inputPoints] - 用于做插值分析的离散点集合。当插值分析类型(InterpolationAnalystType)为 geometry 时。此为必选参数
3131
* @example
3232
* var myInterpolationRBFAnalystParameters = new InterpolationRBFAnalystParameters({
3333
* dataset:"SamplesP@Interpolation",

src/common/iServer/QueryByDistanceParameters.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {QueryParameters} from './QueryParameters';
1414
* @param {Object} options - 参数。
1515
* @param {GeoJSONObject} options.geometry - 用于查询的几何对象。
1616
* @param {Array.<FilterParameter>} options.queryParams - 查询过滤条件参数数组。
17+
* @param {number} options.distance - 查询距离,单位与所查询图层对应的数据集单位相同。距离查询时,表示距离地物的距离。最近地物查询时,表示距离的容限。此为必选参数。
1718
* @param {string} [options.customParams] - 自定义参数,供扩展使用。
1819
* @param {Object} [options.prjCoordSys] -自定义参数,供 SuperMap Online 提供的动态投影查询扩展使用。如 {"epsgCode":3857}。
1920
* @param {number} [options.expectCount=100000] - 期望返回结果记录个数。
@@ -22,7 +23,6 @@ import {QueryParameters} from './QueryParameters';
2223
* @param {number} [options.startRecord=0] - 查询起始记录号。
2324
* @param {number} [options.holdTime=10] - 资源在服务端保存的时间,单位为分钟。
2425
* @param {boolean} [options.returnCustomResult=false] -仅供三维使用。
25-
* @param {number} [options.distance=0] - 查询距离。
2626
* @param {boolean} [options.isNearest=false] - 是否为最近距离查询。
2727
* @param {boolean} [options.returnContent=true] - 是否立即返回新创建资源的表述还是返回新资源的 URI。
2828
* @param {boolean} [options.returnFeatureWithFieldCaption = false] - 返回的查询结果要素字段标识是否为字段别名。为 false 时,返回的是字段名;为 true 时,返回的是字段别名。
@@ -37,9 +37,8 @@ export class QueryByDistanceParameters extends QueryParameters {
3737
/**
3838
* @member {number} [QueryByDistanceParameters.prototype.distance=0]
3939
* @description 查询距离,单位与所查询图层对应的数据集单位相同。
40-
* 当查找最近地物时,该属性无效
40+
* 距离查询时,表示距离地物的距离。最近地物查询时,表示距离的容限
4141
*/
42-
this.distance = 0;
4342

4443
/**
4544
* @member {GeoJSONObject} QueryByDistanceParameters.prototype.geometry

src/common/security/TokenServiceParameter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {ClientType} from '../REST';
1313
* @param {string} options.username - 用户名。
1414
* @param {string} options.password - 密码。
1515
* @param {ClientType} [options.clientType='ClientType.NONE'] - token 申请的客户端标识类型。
16-
* @param {string} [options.ip] - clientType=IP 时,必选
17-
* @param {string} [options.referer] -clientType=Referer 时,必选。如果按照指定 URL 的方式申请令牌,则设置相应的 URL。
16+
* @param {string} [options.ip] - clientType=IP 时,此为必选参数
17+
* @param {string} [options.referer] -clientType=Referer 时,此为必选参数。如果按照指定 URL 的方式申请令牌,则设置相应的 URL。
1818
* @param {number} [options.expiration=60] - 申请令牌的有效期,从发布令牌的时间开始计算,单位为分钟。
1919
* @usage
2020
*
@@ -41,13 +41,13 @@ export class TokenServiceParameter {
4141

4242
/**
4343
* @member {string} [TokenServiceParameter.prototype.ip]
44-
* @description clientType=IP 时,必选
44+
* @description clientType=IP 时,此为必选参数
4545
*/
4646

4747
this.ip = null;
4848
/**
4949
* @member {string} [TokenServiceParameter.prototype.referer]
50-
* @description clientType=Referer 时,必选。如果按照指定 URL 的方式申请令牌,则设置相应的 URL。
50+
* @description clientType=Referer 时,此为必选参数。如果按照指定 URL 的方式申请令牌,则设置相应的 URL。
5151
*/
5252
this.referer = null;
5353

0 commit comments

Comments
 (0)