UNPKG

well-known-parser

Version:

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

18 lines (17 loc) 990 B
import { BinaryReader } from '../binaryreader'; import { WktParser } from '../wktparser'; import { GeometryOptions } from '../types'; import { Point } from '../point'; export declare function parsePointWkt(value: WktParser, options: GeometryOptions): Point; export declare function parsePointWkb(value: BinaryReader, options: GeometryOptions): Point; export declare function parsePointTwkb(value: BinaryReader, options: GeometryOptions): Point; /** * Parses a Twkb point relative to previous point. * Previous point is mutated while parsing to allow for continuous use of the same point instance during parsing. * @param value The reader to parse * @param options * @param previousPoint The previous point to start from, is modified during parsing */ export declare function parseRelativePointTwkb(value: BinaryReader, options: GeometryOptions, previousPoint: Point): Point; export declare function parsePointGeoJSON(coordinates: number[]): Point; //# sourceMappingURL=point.d.ts.map