多段线
Methods
(static) computeStepSurfaceLine(opts)
按2个坐标点分段计算 求路线的贴地线
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
Properties
|
(static) computeSurfaceLine(params)
求路线的贴地线
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
(static) computeSurfacePoints(params)
求多个点的的贴地新坐标(不插值)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
||||||||||
opts.positions |
Array |
<optional> |
坐标数组 |
|||||||||
opts.has3dtiles |
Boolean |
<optional> |
auto
|
是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准) |
||||||||
opts.objectsToExclude |
Array |
<optional> |
null
|
贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features |
||||||||
opts.offset |
Number |
<optional> |
0
|
可以按需增加偏移高度(单位:米),便于可视 |
||||||||
opts.callback |
func |
<optional> |
异步计算高度完成后 的回调方法 |
(static) getLinkedPointList(startPoint, endPoint, angularityFactor, numOfSingleLine) → {Array}
计算曲线链路的点集(a点到b点的,空中曲线)
Parameters:
Name | Type | Description |
---|---|---|
startPoint |
开始节点 |
|
endPoint |
结束节点 |
|
angularityFactor |
曲率 |
|
numOfSingleLine |
点集数量 |
Returns:
- Type
- Array
(static) interPolyline(opts) → {Array}
路线进行贴地(或贴模型)插值, splitNum为次数
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
Properties
|
Returns:
- Type
- Array