gis-tools-ts
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
11 lines • 814 B
TypeScript
import type { JSONCollection, MValue, Projection, Properties, VectorFeatures, VectorGeometry } from '../index.js';
/**
* Convert a GeoJSON Feature to a GeoJSON Vector Feature in either a WebMercator or S2 projection
* @param projection - output either S2 or WM
* @param data - the data to convert
* @param buildBBox - optional - build a bbox for the feature if desired
* @param toUnitScale - optional - convert to unit scale. Assumed to be true if not specified
* @returns - the converted data
*/
export declare function convert<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(projection: Projection, data: JSONCollection<M, D, P>, buildBBox?: boolean, toUnitScale?: boolean): VectorFeatures<M, D, P, VectorGeometry<D>>[];
//# sourceMappingURL=convert.d.ts.map