gis-tools-ts
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
8 lines • 690 B
TypeScript
import type { MValue, Properties, VectorFeature, VectorLineString, VectorLineStringGeometry } from '../../../index.js';
/**
* Find the area of a linestring. No projection is assumed
* @param input - the linestring as either a VectorFeature, VectorLineStringGeometry, or raw VectorLineString
* @returns - the area of the linestring. Positive if the linestring is counter-clockwise, negative otherwise
*/
export declare function lineArea<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(input: VectorLineString<D> | VectorLineStringGeometry<D> | VectorFeature<M, D, P, VectorLineStringGeometry<D>>): number;
//# sourceMappingURL=area.d.ts.map