Skip to content

Documentation / @geoverse/core-ol / compressLine

Function: compressLine()

ts
function compressLine(points, options?): TrackPoint[] | undefined;

Defined in: packages/core-ol/src/tools/trackThin.ts:180

轨迹抽稀主流程。 满足抽稀率/平滑率目标时返回带 iDel 标记的点集,否则返回 undefined。

Parameters

points

TrackPoint[]

options?

CompressLineOptions = {}

Returns

TrackPoint[] | undefined