UNPKG

well-known-parser

Version:

A WKT/WKB/EWKT/EWKB/TWKB/GeoJSON parser and serializer

21 lines (20 loc) 876 B
import { BinaryWriter } from './binarywriter'; import { GeoJSONGeometry, GeometryOptions, TwkbPrecision } from './types'; export declare class Geometry { srid?: number; hasZ: boolean; hasM: boolean; constructor(); toEwkt(): string; toEwkb(): Buffer; protected getWktType(wktType: string, isEmpty: boolean): string; protected writeWkbType(wkb: BinaryWriter, geometryType: number, parentOptions?: GeometryOptions): void; static getTwkbPrecision(xyPrecision: number, zPrecision: number, mPrecision: number): TwkbPrecision; protected writeTwkbHeader(twkb: BinaryWriter, geometryType: number, precision: TwkbPrecision, isEmpty: boolean): void; toGeoJSON(): GeoJSONGeometry; toWkt(): string; toWkb(_parentOptions?: GeometryOptions): Buffer; toTwkb(): Buffer; getWkbSize(): number; } //# sourceMappingURL=geometry.d.ts.map