@loaders.gl/gis
Version:
Helpers for GIS category data
19 lines • 651 B
TypeScript
import type { Feature, BinaryFeatureCollection } from '@loaders.gl/schema';
/**
* Options for `geojsonToBinary`
*/
export type GeojsonToBinaryOptions = {
fixRingWinding: boolean;
numericPropKeys?: string[];
PositionDataType?: Float32ArrayConstructor | Float64ArrayConstructor;
triangulate?: boolean;
};
/**
* Convert GeoJSON features to flat binary arrays
*
* @param features
* @param options
* @returns features in binary format, grouped by geometry type
*/
export declare function geojsonToBinary(features: Feature[], options?: GeojsonToBinaryOptions): BinaryFeatureCollection;
//# sourceMappingURL=geojson-to-binary.d.ts.map