Skip to content

Commit c607483

Browse files
committed
【fix】补充API的介绍说明 review by jinny
1 parent afc8d20 commit c607483

File tree

421 files changed

+2654
-1915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+2654
-1915
lines changed

src/classic/overlay/MapVLayer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import { MapVRenderer } from './mapv/MapVRenderer';
77
/**
88
* @class SuperMap.Layer.MapVLayer
99
* @category Visualization MapV
10-
* @classdesc MapV 图层类。
10+
* @classdesc MapV 图层类。MapV 是一款地理信息可视化开源库,MapV 图层可以用来展示大量地理信息数据,点、线、面的数据,每种数据也有不同的展示类型,如直接打点、热力图、网格、聚合等方式展示数据。<br>
11+
* 展示大量的点数据:如热力图、网格、蜂窝状、点聚合、按颜色区间、按半径大小等方式。<br>
12+
* 展示大量的线数据:如普通画线、高亮叠加、热力线数据展示等方式,适合展示大量轨迹的场景。<br>
13+
* 展示大量的自定义面数据:按颜色区间来展示,如展示行政区划数据。
1114
* @modulecategory Overlay
1215
* @extends {SuperMap.Layer}
1316
* @param {string} name - 图层名。

src/classic/services/AddressMatchService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AddressMatchService as CommonAddressMatchService } from '@supermap/icli
88
/**
99
* @class SuperMap.REST.AddressMatchService
1010
* @category iServer AddressMatch
11-
* @classdesc 地址匹配服务类。包括正向匹配和反向匹配
11+
* @classdesc 地址匹配服务类。此类提供了地址的正向匹配和反向匹配功能,正向匹配即通过地点名称关键词查找地址位置坐标,反向匹配即根据位置坐标查询地点
1212
* @modulecategory Services
1313
* @extends {CommonServiceBase}
1414
* @param {string} url - 服务地址。
@@ -25,7 +25,7 @@ export class AddressMatchService extends CommonServiceBase {
2525

2626
/**
2727
* @function SuperMap.REST.AddressMatchService.prototype.code
28-
* @description 正向匹配。
28+
* @description 正向匹配,即通过地点名称关键词查找地址位置坐标
2929
* @param {GeoCodingParameter} params - 正向匹配参数。
3030
* @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
3131
* @returns {Promise} Promise 对象。
@@ -43,7 +43,7 @@ export class AddressMatchService extends CommonServiceBase {
4343

4444
/**
4545
* @function SuperMap.REST.AddressMatchService.prototype.decode
46-
* @description 反向匹配。
46+
* @description 反向匹配,即根据地址位置坐标查询地点
4747
* @param {GeoDecodingParameter} params - 反向匹配参数。
4848
* @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
4949
* @returns {Promise} Promise 对象。

src/classic/services/DatasetService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { UpdateDatasetParameters } from '@supermap/iclient-common/iServer/Update
1010
/**
1111
* @class SuperMap.REST.DatasetService
1212
* @category iServer Data Dataset
13-
* @classdesc 数据集信息服务
13+
* @classdesc 数据集信息服务类。提供方法:查询数据集集合、查询指定数据集信息,在指定数据源下新增、修改、删除数据集等
1414
* @extends {CommonServiceBase}
1515
* @param {string} url - 服务地址。
1616
* @param {Object} options - 参数。
@@ -33,7 +33,7 @@ export class DatasetService extends CommonServiceBase {
3333

3434
/**
3535
* @function SuperMap.REST.DatasetService.prototype.getDatasets
36-
* @description 数据集查询服务
36+
* @description 数据集集合查询服务
3737
* @example
3838
* new SuperMap.REST.DatasetService(url).getDatasets(datasourceName,function(result){
3939
* //doSomething
@@ -51,7 +51,7 @@ export class DatasetService extends CommonServiceBase {
5151

5252
/**
5353
* @function SuperMap.REST.DatasetService.prototype.getDataset
54-
* @description 数据集查询服务
54+
* @description 数据集信息查询服务
5555
* @example
5656
* new SuperMap.REST.DatasetService(url).getDataset(datasourceName, datasetName, function(result){
5757
* //doSomething

src/classic/services/DatasourceService.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { SetDatasourceParameters } from '@supermap/iclient-common/iServer/SetDat
99
/**
1010
* @class SuperMap.REST.DatasourceService
1111
* @category iServer Data Datasource
12-
* @classdesc 数据源服务类。
12+
* @classdesc 数据源服务类。提供方法:查询数据源集合、查询指定数据源信息、设置指定数据源信息。
13+
* 可以获取的数据源信息包括数据源名称、数据源描述、引擎类型、距离单位、坐标单位、投影信息等。
1314
* @extends {CommonServiceBase}
1415
* @param {string} url - 服务地址。
1516
* @param {Object} options - 参数。
@@ -32,7 +33,7 @@ export class DatasourceService extends CommonServiceBase {
3233

3334
/**
3435
* @function SuperMap.REST.DatasourceService.prototype.getDatasources
35-
* @description 数据源集查询服务
36+
* @description 数据源集合查询服务
3637
* @example
3738
* new SuperMap.REST.DatasourceService(url).getDatasources(function(result){
3839
* //doSomething

src/classic/services/ProcessingService.js

Lines changed: 54 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { ProcessingService as CommonProcessingService } from '@supermap/iclient-
77
/**
88
* @class SuperMap.REST.ProcessingService
99
* @category iServer ProcessingService
10-
* @classdesc 分布式分析相关服务类。
10+
* @classdesc 分布式分析相关服务类。分布式分析服务采用了分布式计算技术,可对超大体量空间数据集进行分布式空间分析和数据处理。
11+
* 提供方法:缓冲区分析任务、核密度分析任务、叠加分析任务、单对象空间查询任务、点聚合分析任务、区域汇总分析任务、
12+
* 拓扑检查分析任务、矢量裁剪分析任务等。
1113
* @modulecategory Services
1214
* @augments CommonServiceBase
1315
* @example
@@ -38,7 +40,7 @@ export class ProcessingService {
3840

3941
/**
4042
* @function SuperMap.REST.ProcessingService.prototype.getKernelDensityJob
41-
* @description 获取某一个密度分析
43+
* @description 获取指定 ID 的密度分析
4244
* @param {string} id - 空间分析的 ID。
4345
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
4446
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -50,8 +52,13 @@ export class ProcessingService {
5052

5153
/**
5254
* @function SuperMap.REST.ProcessingService.prototype.addKernelDensityJob
53-
* @description 密度分析。
54-
* @param {KernelDensityJobParameter} params - 核密度分析服务参数类。
55+
* @description 新建密度分析。目前提供 1 种密度分析方法:核密度分析。<br>
56+
* 核密度分析是指使用核函数来计算点或线邻域范围内的每单位面积量值。
57+
* 其结果是中间值大周边值小的光滑曲面,在邻域边界处降为0。
58+
* 对于点对象,其核密度曲面与下方的平面所围成的空间的体积近似于此点的测量值;
59+
* 对于线对象,其核密度曲面与下方的平面所围成的空间的体积近似于此线的测量值与线长度的乘积。
60+
* 点或线的邻域叠加处,其密度值也相加。每个输出栅格的密度均为叠加在栅格上的所有核曲面值之和。
61+
* @param {KernelDensityJobParameter} params - 核密度分析任务参数类。
5562
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
5663
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
5764
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -85,7 +92,7 @@ export class ProcessingService {
8592

8693
/**
8794
* @function SuperMap.REST.ProcessingService.prototype.getSummaryMeshJob
88-
* @description 获取点聚合分析
95+
* @description 获取指定 ID 的点聚合分析
8996
* @param {string} id - 点聚合分析的 ID。
9097
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
9198
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -97,7 +104,11 @@ export class ProcessingService {
97104

98105
/**
99106
* @function SuperMap.REST.ProcessingService.prototype.addSummaryMeshJob
100-
* @description 点聚合分析。
107+
* @description 新建点聚合分析。<br>
108+
* 点聚合分析是指针对点数据集制作聚合图的一种空间分析作业。通过网格面或多边形对地图点要素进行划分,
109+
* 然后,计算每个面对象内点要素的数量,并作为面对象的统计值,也可以引入点的权重信息,
110+
* 考虑面对象内点的加权值作为面对象的统计值;最后基于面对象的统计值,按照统计值大小排序的结果,
111+
* 通过色带对面对象进行色彩填充。
101112
* @param {SummaryMeshJobParameter} params - 点聚合分析任务参数类。
102113
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
103114
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
@@ -121,7 +132,7 @@ export class ProcessingService {
121132

122133
/**
123134
* @function SuperMap.REST.ProcessingService.prototype.getQueryJobs
124-
* @description 获取单对象查询分析的列表
135+
* @description 获取单对象空间查询分析的列表
125136
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
126137
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
127138
* @returns {Promise} Promise 对象。
@@ -132,8 +143,8 @@ export class ProcessingService {
132143

133144
/**
134145
* @function SuperMap.REST.ProcessingService.prototype.getQueryJob
135-
* @description 获取单对象查询分析
136-
* @param {string} id - 单对象查询分析的 ID。
146+
* @description 获取指定 ID 的单对象空间查询分析
147+
* @param {string} id - 单对象空间查询分析的 ID。
137148
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
138149
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
139150
* @returns {Promise} Promise 对象。
@@ -144,7 +155,9 @@ export class ProcessingService {
144155

145156
/**
146157
* @function SuperMap.REST.ProcessingService.prototype.addQueryJob
147-
* @description 单对象查询分析。
158+
* @description 新建单对象空间查询分析。<br>
159+
* 单对象空间查询,指的是只支持查询对象数据集中有一个对象对被查询数据集做空间查询。
160+
* 如果查询对象数据集中有多个对象,则默认用 SmID 最小的对象对被查询数据集做空间查询。
148161
* @param {SingleObjectQueryJobsParameter} params - 单对象空间查询分析任务参数类。
149162
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
150163
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
@@ -158,9 +171,9 @@ export class ProcessingService {
158171

159172
/**
160173
* @function SuperMap.REST.ProcessingService.prototype.getQueryJobState
161-
* @description 获取单对象查询分析的状态
162-
* @param {string} id - 单对象查询分析的 ID。
163-
* @returns {Object} 单对象查询分析的状态
174+
* @description 获取单对象空间查询分析的状态
175+
* @param {string} id - 单对象空间查询分析的 ID。
176+
* @returns {Object} 单对象空间查询分析的状态
164177
*/
165178
getQueryJobState(id) {
166179
return this._processingService.getQueryJobState(id)
@@ -179,7 +192,7 @@ export class ProcessingService {
179192

180193
/**
181194
* @function SuperMap.REST.ProcessingService.prototype.getSummaryRegionJob
182-
* @description 获取某一个区域汇总分析
195+
* @description 获取指定 ID 的区域汇总分析
183196
* @param {string} id - 区域汇总分析的 ID。
184197
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
185198
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -191,7 +204,10 @@ export class ProcessingService {
191204

192205
/**
193206
* @function SuperMap.REST.ProcessingService.prototype.addSummaryRegionJob
194-
* @description 新建一个区域汇总分析。
207+
* @description 新建区域汇总分析。<br>
208+
* 区域汇总分析是指针对线数据集和面数据集制作聚合图的一种空间分析作业。
209+
* 通过网格面或多边形对地图线或面要素进行划分,然后,以标准属性字段或权重字段对每个网格单元内线或面要素进行统计,
210+
* 将统计结果作为该网格单元的统计值。最后按照网格单元统计值的大小进行排序,通过色带对网格单元进行色彩填充。
195211
* @param {SummaryRegionJobParameter} params -创建一个区域汇总分析的请求参数。
196212
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
197213
* @param {number} [seconds=1000] - 开始创建后,获取创建成功结果的时间间隔。
@@ -226,7 +242,7 @@ export class ProcessingService {
226242

227243
/**
228244
* @function SuperMap.REST.ProcessingService.prototype.getVectorClipJob
229-
* @description 获取矢量裁剪分析
245+
* @description 获取指定 ID 的矢量裁剪分析
230246
* @param {string} id - 矢量裁剪分析的 ID。
231247
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
232248
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -238,7 +254,10 @@ export class ProcessingService {
238254

239255
/**
240256
* @function SuperMap.REST.ProcessingService.prototype.addVectorClipJob
241-
* @description 矢量裁剪分析。
257+
* @description 新建矢量裁剪分析。<br>
258+
* 矢量裁剪是指对矢量数据集进行裁剪,包括内部裁剪和外部裁剪。
259+
* 内部裁剪,则被裁剪的矢量数据集在裁剪区范围内的部分被保留到结果数据集中;
260+
* 外部裁剪,则保留不在裁剪区范围内的那部分数据到结果数据集中。
242261
* @param {VectorClipJobsParameter} params - 矢量裁剪分析任务参数类。
243262
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
244263
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
@@ -273,7 +292,7 @@ export class ProcessingService {
273292

274293
/**
275294
* @function SuperMap.REST.ProcessingService.prototype.getOverlayGeoJob
276-
* @description 获取叠加分析
295+
* @description 获取指定 ID 的叠加分析
277296
* @param {string} id - 叠加分析的 ID。
278297
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
279298
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -285,7 +304,10 @@ export class ProcessingService {
285304

286305
/**
287306
* @function SuperMap.REST.ProcessingService.prototype.addOverlayGeoJob
288-
* @description 叠加分析。
307+
* @description 新建叠加分析。<br>
308+
* 叠加分析是在统一空间参考系统下,通过对两个数据集进行的一系列集合运算,产生新数据集的过程。
309+
* 在叠加分析中至少涉及到三个数据集,其中一个数据集的类型可以是点、线、面等,被称作源数据集;
310+
* 另一个数据集是面数据集,被称作叠加对象数据集;还有一个数据集就是叠加结果数据集,包含叠加后数据的几何信息和属性信息。
289311
* @param {OverlayGeoJobParameter} params - 叠加分析任务参数类。
290312
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
291313
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
@@ -320,7 +342,7 @@ export class ProcessingService {
320342

321343
/**
322344
* @function SuperMap.REST.ProcessingService.prototype.getBuffersJob
323-
* @description 获取缓冲区分析
345+
* @description 获取指定 ID 的缓冲区分析
324346
* @param {string} id - 缓冲区分析的 ID。
325347
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
326348
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -332,7 +354,9 @@ export class ProcessingService {
332354

333355
/**
334356
* @function SuperMap.REST.ProcessingService.prototype.addBuffersJob
335-
* @description 缓冲区分析。
357+
* @description 新建缓冲区分析。<br>
358+
* 缓冲区分析是围绕空间对象,使用与空间对象的距离值(称为缓冲半径)作为半径,生成该对象的缓冲区域的过程,
359+
* 其中缓冲半径可以是固定数值也可以是空间对象各自的属性值。缓冲区也可以理解为空间对象的影响或服务范围。
336360
* @param {BuffersAnalystJobsParameter} params - 创建一个缓冲区分析的请求参数。
337361
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
338362
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
@@ -367,7 +391,7 @@ export class ProcessingService {
367391

368392
/**
369393
* @function SuperMap.REST.ProcessingService.prototype.getTopologyValidatorJob
370-
* @description 获取拓扑检查分析
394+
* @description 获取指定 ID 的拓扑检查分析
371395
* @param {string} id - 拓扑检查分析的 ID。
372396
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
373397
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -379,7 +403,10 @@ export class ProcessingService {
379403

380404
/**
381405
* @function SuperMap.REST.ProcessingService.prototype.addTopologyValidatorJob
382-
* @description 拓扑检查分析。
406+
* @description 新建拓扑检查分析。<br>
407+
* 拓扑检查是指根据相应的拓扑规则对点、线和面数据进行检查,返回不符合规则的对象的一种操作作业。
408+
* 支持以下种拓扑规则:面数据集内部无交叠、面数据集和面数据集无交叠、面数据集被面数据集包含、
409+
* 面数据集被面数据集覆盖、线数据集内部无交叠、线数据集与线数据集无交叠、点数据集内部无重复点。
383410
* @param {TopologyValidatorJobsParameter} params - 拓扑检查分析任务参数类。
384411
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
385412
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
@@ -414,7 +441,7 @@ export class ProcessingService {
414441

415442
/**
416443
* @function SuperMap.REST.ProcessingService.prototype.getSummaryAttributesJob
417-
* @description 获取属性汇总分析
444+
* @description 获取指定 ID 的属性汇总分析
418445
* @param {string} id - 属性汇总分析的 ID。
419446
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
420447
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -426,7 +453,9 @@ export class ProcessingService {
426453

427454
/**
428455
* @function SuperMap.REST.ProcessingService.prototype.addSummaryAttributesJob
429-
* @description 属性汇总分析。
456+
* @description 新建属性汇总分析。<br>
457+
* 属性汇总分析是指对输入的数据集中所选择的属性进行汇总统计。
458+
* 通过对输入的数据集设定分组字段、属性字段以及对属性字段需进行的统计模式,从而得到汇总统计的结果。
430459
* @param {SummaryAttributesJobsParameter} params - 属性汇总分析任务参数类。
431460
* @param {function} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。
432461
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。

0 commit comments

Comments
 (0)