@@ -84,10 +84,10 @@ export class GeometryAnalysis extends Events {
84
84
/**
85
85
* @function GeometryAnalysis.prototype.isIdentical
86
86
* @version 11.2.0
87
- * @description 几何对象相等分析, 传入要素坐标系需一致。
87
+ * @description 几何对象相等分析, 传入要素坐标系需一致。
88
88
* @param {GeoJSONFeature } feature - 要素。
89
89
* @param {GeoJSONFeature } compareFeature - 对比要素。
90
- * @param {number } [tolerance=1e-6] - 节点容限值 。
90
+ * @param {number } [tolerance=1e-6] - 要素节点容限值 。
91
91
* @returns {boolean } 要素是否完全相等。
92
92
*/
93
93
isIdentical ( feature , compareFeature , tolerance = 1e-6 ) {
@@ -102,7 +102,7 @@ export class GeometryAnalysis extends Events {
102
102
* @description 几何对象是否相交分析,传入要素坐标系需一致。
103
103
* @param {GeoJSONFeature } feature - 要素。
104
104
* @param {GeoJSONFeature } compareFeature - 对比要素。
105
- * @param {number } [tolerance=1e-6] - 节点容限值 。
105
+ * @param {number } [tolerance=1e-6] - 要素节点容限值 。
106
106
* @returns {boolean } 要素是否相交。
107
107
*/
108
108
hasIntersection ( feature , compareFeature , tolerance = 1e-6 ) {
@@ -117,7 +117,7 @@ export class GeometryAnalysis extends Events {
117
117
* @description 几何对象边界是否接触分析,传入要素坐标系需一致。
118
118
* @param {GeoJSONFeature } feature - 要素。
119
119
* @param {GeoJSONFeature } compareFeature - 对比要素。
120
- * @param {number } [tolerance=1e-6] - 节点容限值 。
120
+ * @param {number } [tolerance=1e-6] - 要素节点容限值 。
121
121
* @returns {boolean } 几何对象边界是否接触。
122
122
*/
123
123
hasTouch ( feature , compareFeature , tolerance = 1e-6 ) {
@@ -222,8 +222,8 @@ export class GeometryAnalysis extends Events {
222
222
* @param {number } startY - 线起点 Y 坐标。
223
223
* @param {number } endX - 线终点 X 坐标。
224
224
* @param {number } endY - 线终点 Y 坐标。
225
- * @param {string } [featureUnit='DEGREE'] - 线坐标的单位,默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
226
- * @param {string } [unit='DEGREE'] - 结果距离单位,默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
225
+ * @param {string } [featureUnit='DEGREE'] - 线坐标的单位,默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
226
+ * @param {string } [unit='DEGREE'] - 结果距离单位,默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
227
227
* @returns {number } 点到线段的距离。如果点到线段的垂足不在线段上,则返回点到线段较近的端点的距离。
228
228
*/
229
229
distanceToLineSegment ( x , y , startX , startY , endX , endY , featureUnit = Unit . DEGREE , unit = Unit . DEGREE ) {
@@ -267,7 +267,7 @@ export class GeometryAnalysis extends Events {
267
267
* @function GeometryAnalysis.prototype.computeConcaveHullPoints
268
268
* @version 11.2.0
269
269
* @description 点数组凹闭包计算。
270
- * @param {Array|FeatureCollection } points - 点坐标数组,支持的形式为 [[x, y]], [{x, y}], 点要素数组, 也支持 FeatureCollection。
270
+ * @param {Array|FeatureCollection } points - 点坐标数组,支持的形式为 [[x, y]], [{x, y}], 点要素数组, 也支持 FeatureCollection。
271
271
* @param {number } angle - 凹包内最小角度。
272
272
* @returns {GeoJSONFeature } 结果要素。
273
273
*/
@@ -314,7 +314,7 @@ export class GeometryAnalysis extends Events {
314
314
* @param {number } top - 矩形上坐标。
315
315
* @param {number } right - 矩形右坐标。
316
316
* @param {number } bottom - 矩形下坐标。
317
- * @param {number } [tolerance=1e-6] - 节点容限值 。
317
+ * @param {number } [tolerance=1e-6] - 要素节点容限值 。
318
318
* @returns {boolean } 要素是否与矩形相交。
319
319
*/
320
320
isIntersectRegionWithRect ( feature , left , top , right , bottom , tolerance = 1e-6 ) {
@@ -377,8 +377,8 @@ export class GeometryAnalysis extends Events {
377
377
* @function GeometryAnalysis.prototype.computeGeodesicArea
378
378
* @version 11.2.0
379
379
* @description 计算坐标为经纬度的面要素面积。
380
- * @param {GeoJSONFeature } feature - 面要素, 坐标参考系统为 WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84)。
381
- * @param {string } [unit='SquareMeter'] - 结果面积单位, 默认值为 SquareMeter,支持的值有:"SquareKiloMeter", "SquareFoot", "SquareYard", "SquareMile", "SquareMeter"。
380
+ * @param {GeoJSONFeature } feature - 面要素, 坐标参考系统为 WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84)。
381
+ * @param {string } [unit='SquareMeter'] - 结果面积单位, 默认值为 SquareMeter,支持的值有:"SquareKiloMeter", "SquareFoot", "SquareYard", "SquareMile", "SquareMeter"。
382
382
* @returns {number } 面积大小,单位与设置单位一致。
383
383
*/
384
384
@@ -402,7 +402,7 @@ export class GeometryAnalysis extends Events {
402
402
* @version 11.2.0
403
403
* @description 线要素光滑分析。
404
404
* @param {GeoJSONFeature } feature - 线要素。
405
- * @param {number } [smoothness=2] - 有效范围为大于等于2,设置为小于2的值会抛出异常。 光滑系数越大,线对象节点数越多,也就越光滑。 建议取值范围为[2,10]。
405
+ * @param {number } [smoothness=2] - 有效范围为大于等于2,设置为小于2的值会抛出异常, 光滑系数越大,线对象节点数越多,也就越光滑。 建议取值范围为[2,10]。
406
406
* @returns {GeoJSONFeature } 光滑处理后的线要素。
407
407
*/
408
408
smooth ( feature , smoothness = 2 ) {
@@ -421,22 +421,22 @@ export class GeometryAnalysis extends Events {
421
421
/**
422
422
* @function GeometryAnalysis.prototype.computeGeodesicDistance
423
423
* @version 11.2.0
424
- * @description 计算测地线长度, 坐标参考系统为 WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84)。
424
+ * @description 计算测地线长度, 坐标参考系统为 WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84)。
425
425
* @param {Array } xArray - x 坐标数组。
426
426
* @param {Array } yArray - y 坐标数组。
427
427
* @param {number } majorAxis - 测地线所在椭球体的长轴,单位为米。
428
428
* @param {number } flatten - 测地线所在椭球体的扁率。
429
- * @param {string } [unit='METER'] - 结果长度单位, 默认值为 METER, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT"。
429
+ * @param {string } [unit='METER'] - 结果长度单位, 默认值为 METER, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT"。
430
430
* @returns {number } 测地线的长度。
431
431
*/
432
432
/**
433
433
* @function GeometryAnalysis.prototype.computeGeodesicDistance
434
434
* @version 11.2.0
435
- * @description 计算测地线长度, 坐标参考系统为 WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84)。
436
- * @param {Array|FeatureCollection } points - 点坐标数组, 支持的形式为 [[x, y]], [{x, y}], 点要素数组, 也支持 FeatureCollection。
435
+ * @description 计算测地线长度, 坐标参考系统为 WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84)。
436
+ * @param {Array|FeatureCollection } points - 点坐标数组, 支持的形式为 [[x, y]], [{x, y}], 点要素数组, 也支持 FeatureCollection。
437
437
* @param {number } majorAxis - 测地线所在椭球体的长轴,单位为米。
438
438
* @param {number } flatten - 测地线所在椭球体的扁率。
439
- * @param {string } [unit='METER'] - 结果长度单位, 默认值为 METER, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT"。
439
+ * @param {string } [unit='METER'] - 结果长度单位, 默认值为 METER, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT"。
440
440
* @returns {number } 测地线的长度。
441
441
*/
442
442
computeGeodesicDistance ( xArray , yArray , majorAxis , flatten , unit = Unit . METER ) {
@@ -465,8 +465,8 @@ export class GeometryAnalysis extends Events {
465
465
* @description 根据距离获取线要素的平行线,线可为折线。
466
466
* @param {GeoJSONFeature } feature - 线要素。
467
467
* @param {number } distance - 平行线距离。
468
- * @param {string } [featureUnit='DEGREE'] - 线要素距离单位, 默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
469
- * @param {string } [unit='DEGREE'] - 平行线距离单位, 默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
468
+ * @param {string } [featureUnit='DEGREE'] - 线要素距离单位, 默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
469
+ * @param {string } [unit='DEGREE'] - 平行线距离单位, 默认值为 DEGREE, 支持的值有: "METER", "KILOMETER", "INCH", "FOOT", "DEGREE"。
470
470
* @returns {GeoJSONFeature } 结果为与线要素相隔传入距离长度的平行线要素。
471
471
*/
472
472
computeParallel ( feature , distance , featureUnit = Unit . DEGREE , unit = Unit . DEGREE ) {
@@ -495,7 +495,7 @@ export class GeometryAnalysis extends Events {
495
495
* @function GeometryAnalysis.prototype.computeConvexHullPoints
496
496
* @version 11.2.0
497
497
* @description 点数组的凸闭包计算,即最小外接多边形。
498
- * @param {Array|FeatureCollection } points - 点坐标数组, 支持的形式为 [[x, y]], [{x, y}], 点要素数组, 也支持 FeatureCollection。
498
+ * @param {Array|FeatureCollection } points - 点坐标数组, 支持的形式为 [[x, y]], [{x, y}], 点要素数组, 也支持 FeatureCollection。
499
499
* @returns {GeoJSONFeature } 最小外接多边形要素。
500
500
*/
501
501
computeConvexHullPoints ( xArray , yArray ) {
0 commit comments