well-known-parser
Version:
A WKT/WKB/EWKT/EWKB/TWKB/GeoJSON parser and serializer
29 lines (28 loc) • 1.57 kB
TypeScript
import { BinaryReader } from '../binaryreader';
import { WktParser } from '../wktparser';
import { GeoJSONGeometry, GeometryOptions } from '../types';
import { Geometry } from '../geometry';
import { GeometryCollection as GeoJSONGeometryCollection } from 'geojson';
import { GeometryCollection } from '../geometrycollection';
export declare function parse(value: string | Buffer | WktParser | BinaryReader, options?: GeometryOptions): Geometry;
/**
* Helper function to parse WKT format
*/
export declare function parseWkt(value: string | WktParser, inputOptions?: GeometryOptions): Geometry;
/**
* Helper function to parse WKB format
*/
export declare function parseWkb(value: Buffer | BinaryReader, parentOptions?: GeometryOptions): Geometry;
/**
* Helper function to parse TWKB format
*/
export declare function parseTwkb(value: Buffer | BinaryReader, inputOptions?: GeometryOptions): Geometry;
/**
* Helper function to parse GeoJSON
*/
export declare function parseGeoJSON(value: GeoJSONGeometry, isSubGeometry?: boolean): Geometry;
export declare function parseGeometryCollectionWkt(value: WktParser, options: GeometryOptions): GeometryCollection;
export declare function parseGeometryCollectionWkb(value: BinaryReader, options: GeometryOptions): GeometryCollection;
export declare function parseGeometryCollectionTwkb(value: BinaryReader, options: GeometryOptions): GeometryCollection;
export declare function parseGeometryCollectionGeoJSON(value: Pick<GeoJSONGeometryCollection, 'geometries'>): GeometryCollection;
//# sourceMappingURL=index.d.ts.map