UNPKG

gis-tools-ts

Version:

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

14 lines 744 B
import type { Face, MValue, Properties, S2Feature, VectorFeature, VectorGeometry } from '../index.js'; /** * Convert an S2Feature to a GeoJSON Vector Feature * @param data - S2Feature * @returns - GeoJSON Vector Feature */ export declare function toWM<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties, G extends VectorGeometry<D> = VectorGeometry<D>>(data: S2Feature<M, D, P, G>): VectorFeature<M, D, P, G>; /** * Underlying conversion mechanic to move S2Geometry to GeoJSON Geometry * @param face - Face * @param geometry - S2 Geometry */ export declare function s2ToVector<M extends MValue = Properties>(face: Face, geometry: VectorGeometry<M>): void; //# sourceMappingURL=convert.d.ts.map