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