s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
19 lines • 946 B
TypeScript
import { ShapeFileReader } from './shp';
import type { ProjectionTransformDefinition } from '../../proj4';
export * from './dbf';
export * from './shp';
/**
* Assumes the input is pointing to shapefile data.
* @param input - raw buffer of gzipped data (folder of shp, dbf, prj, and/or cpg)
* @param defs - optional array of ProjectionTransformDefinitions to insert
* @param epsgCodes - a record of EPSG codes to use for the transformer if needed
* @returns - a Shapefile
*/
export declare function shapefileFromGzip(input: ArrayBufferLike, defs?: ProjectionTransformDefinition[], epsgCodes?: Record<string, string>): Promise<ShapeFileReader>;
/**
* Assumes the input is pointing to shapefile data or a gzipped folder with .shp, .dbf, .prj, and/or .cpg
* @param url - the url to the shapefile
* @returns - a Shapefile
*/
export declare function shapefileFromURL(url: string): Promise<ShapeFileReader>;
//# sourceMappingURL=index.d.ts.map