well-known-parser
Version:
A WKT/WKB/EWKT/EWKB/TWKB/GeoJSON parser and serializer
20 lines (19 loc) • 833 B
TypeScript
import { Geometry } from './geometry';
import { Coordinates, GeometryOptions } from './types';
import { Point } from './point';
import { LineString as GeoJSONLineString } from 'geojson';
export declare class LineString extends Geometry {
points: Point[];
constructor(points?: Point[], srid?: number);
static Z(points?: Point[], srid?: number): LineString;
static M(points?: Point[], srid?: number): LineString;
static ZM(points?: Point[], srid?: number): LineString;
toWkt(isNested?: boolean): string;
private toInnerWkt;
toWkb(parentOptions?: GeometryOptions): Buffer;
toTwkb(previousPoint?: Point, isNested?: boolean): Buffer;
getWkbSize(): number;
toGeoJSON(): GeoJSONLineString;
toGeoJSON(isNested: true): Coordinates<GeoJSONLineString>;
}
//# sourceMappingURL=linestring.d.ts.map