exportdefault abstract classGeometry{ /** The id of geometry. */ id: number; /** Gets the geometry type. */ get type(): GeometryType; /** Gets a flatten coordinates array. */ abstract coordinatesFlat(): Array<ICoordinate>; /** Gets the coordinates array. */ abstract coordinates(): any; /** Gets the centroid of this geometry. */ centroid(): ICoordinate; /** Gets the envelope of this geometry. */ envelope(): Envelope; /** Gets the area of this geometry. */ area(): number; /** Gets the perimeter of this geometry. */ perimeter(): number; /** Gets the interior point of this geometry. */ interiorPoint(): ICoordinate; /** Converts this geometry to GeoJSON format. */ toJSON(): IGeoJSON; /** Clones this geometry as a new one. */ clone(convert?: (coordinate: ICoordinate) => ICoordinate): Geometry; /** Converts this geometry to WKT format. */ toWKT(): string; /** Converts this geometry to WKB format. */ toWKB(bigEndian?: boolean): Buffer; /** Loops all coordinates in this geometry. */ abstract forEachCoordinates(callback: (coordinate: ICoordinate) => void): void; /** Move coordinates by the specified offset. */ move(offsetX: number, offsetY: number): void; /** Rotates this geometry by the specified angle and origin point. */ rotate(angle: number, origin?: ICoordinate): void; /** Detects whether this geometry contains with the specified geometry. */ contains(geom: Geometry): boolean; /** Detects whether this geometry covers with the specified geometry. */ covers(geom: Geometry): boolean; /** Detects whether this geometry crosses with the specified geometry. */ crosses(geom: Geometry): boolean; /** Detects whether this geometry is disjoint with the specified geometry. */ disjoint(geom: Geometry): boolean; /** Calculates distance between this and the specified geometry. */ distance(geom: Geometry): number; /** Detects whether this geometry intersects with the specified geometry. */ intersects(geom: Geometry): boolean; /** Detects whether this geometry overlaps on the specified geometry. */ overlaps(geom: Geometry): boolean; /** Detects whether this geometry is within the specified geometry. */ within(geom: Geometry): boolean; /** Detects whether this geometry touches on the specified geometry. */ touches(geom: Geometry): boolean; }