UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

20 lines 1.72 kB
import type { MValue, Properties, VectorFeatures, VectorLineString, VectorLineStringGeometry, VectorMultiLineString, VectorMultiLineStringGeometry } from '../../../index.js'; /** * Removes duplicates and superfluous/collinear points from a collection of linestrings * @param linestrings - the linestring to clean * @param isPoly - true if the linestring is from a polygon ring * @param eps - the tolerance. Defaults to `1e-12` * @param cleanWGS84 - if true, clean WGS84 points to be in bounds * @returns New cleaned lines (points are duplicated) */ export declare function cleanMultiLineString<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(linestrings: VectorMultiLineString<D> | VectorMultiLineStringGeometry<D> | VectorFeatures<M, D, P, VectorMultiLineStringGeometry<D>>, isPoly?: boolean, eps?: number, cleanWGS84?: boolean): VectorMultiLineString<D> | undefined; /** * Removes duplicates and superfluous/collinear points from a linestring * @param linestring - the linestring to clean * @param isPoly - true if the linestring is from a polygon ring * @param eps - the toleranc to check if the segments are superfluous/collinear. Defaults to `1e-12` * @param cleanWGS84 - if true, clean WGS84 points to be in bounds * @returns A new cleaned lines (points are duplicated) */ export declare function cleanLineString<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(linestring: VectorLineString<D> | VectorLineStringGeometry<D> | VectorFeatures<M, D, P, VectorLineStringGeometry<D>>, isPoly?: boolean, eps?: number, cleanWGS84?: boolean): VectorLineString<D> | undefined; //# sourceMappingURL=clean.d.ts.map