@loaders.gl/gis
Version:
Helpers for GIS category data
18 lines • 921 B
TypeScript
import type { BinaryGeometry, BinaryGeometryType, BinaryFeatureCollection, Feature, Geometry } from '@loaders.gl/schema';
type BinaryToGeoJsonOptions = {
type?: BinaryGeometryType;
globalFeatureId?: number;
};
/**
* Convert binary geometry representation to GeoJSON
* @param data geometry data in binary representation
* @param options
* @param options.type Input data type: Point, LineString, or Polygon
* @param options.featureId Global feature id. If specified, only a single feature is extracted
* @return GeoJSON objects
*/
export declare function binaryToGeojson(data: BinaryFeatureCollection, options?: BinaryToGeoJsonOptions): Feature[] | Feature;
/** Parse input binary data and return a valid GeoJSON geometry object */
export declare function binaryToGeometry(data: BinaryGeometry, startIndex?: number, endIndex?: number): Geometry;
export {};
//# sourceMappingURL=binary-to-geojson.d.ts.map