gis-tools-ts
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
16 lines • 949 B
TypeScript
import type { Feature, Geometry, MValue, Properties, VectorFeature, VectorGeometry } from '../../index.js';
/**
* Convert a GeoJSON Feature to a GeoJSON Vector Feature
* @param data - GeoJSON Feature
* @param buildBBox - optional - build a bbox for the feature if desired
* @returns - GeoJson Vector Feature
*/
export declare function toVector<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties, G extends Geometry<D> = Geometry<D>>(data: Feature<M, D, P, G>, buildBBox?: boolean): VectorFeature<M, D, P, VectorGeometry<D>>;
/**
* Convert a GeoJSON Geometry to an Vector Geometry
* @param geometry - GeoJSON Geometry
* @param buildBBox - optional - build a bbox for the feature if desired
* @returns - GeoJson Vector Geometry
*/
export declare function geoToVector<M extends MValue = Properties>(geometry: Geometry<M>, buildBBox?: boolean): VectorGeometry<M>;
//# sourceMappingURL=vector.d.ts.map