s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
13 lines • 851 B
TypeScript
import type { JSONCollection, Projection, VectorFeatures } from '..';
/**
* 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 tolerance - optionally specify a tolerance to prepare for future simplification
* @param maxzoom - optionally specify a maxzoom to prepare for future simplification
* @param toUnitScale - optional - convert to unit scale. Assumed to be true if not specified
* @returns - the converted data
*/
export declare function convert(projection: Projection, data: JSONCollection, buildBBox?: boolean, tolerance?: number, maxzoom?: number, toUnitScale?: boolean): VectorFeatures[];
//# sourceMappingURL=convert.d.ts.map