well-known-parser
Version:
A WKT/WKB/EWKT/EWKB/TWKB/GeoJSON parser and serializer
11 lines (10 loc) • 650 B
TypeScript
import { BinaryReader } from '../binaryreader';
import { WktParser } from '../wktparser';
import { GeometryOptions } from '../types';
import { Polygon } from '../polygon';
import { Polygon as GeoJSONPolygon } from 'geojson';
export declare function parsePolygonWkt(value: WktParser, options: GeometryOptions): Polygon;
export declare function parsePolygonWkb(value: BinaryReader, options: GeometryOptions): Polygon;
export declare function parsePolygonTwkb(value: BinaryReader, options: GeometryOptions): Polygon;
export declare function parsePolygonGeoJSON(value: Pick<GeoJSONPolygon, 'coordinates'>): Polygon;
//# sourceMappingURL=polygon.d.ts.map