gis-tools-ts
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
121 lines • 6.42 kB
TypeScript
import type { LASFormat0_5, LASFormat6_10, LASHeader } from './types';
import type { Reader, VectorPointM } from '../..';
/**
* Reads a point using the Point Data Record Format 0
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 0 metadata
*/
export declare function getPointFormat0(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat0_5>;
/**
* Reads a point using the Point Data Record Format 1
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 1 metadata
*/
export declare function getPointFormat1(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat0_5>;
/**
* Reads a point using the Point Data Record Format 2
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 2 metadata
*/
export declare function getPointFormat2(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat0_5>;
/**
* Reads a point using the Point Data Record Format 3
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 3 metadata
*/
export declare function getPointFormat3(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat0_5>;
/**
* Reads a point using the Point Data Record Format 4
* https://github.com/ASPRSorg/LAS/wiki/Waveform-Data-Packet-Descriptors-Explained
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 4 metadata
*/
export declare function getPointFormat4(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat0_5>;
/**
* Reads a point using the Point Data Record Format 5
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 4 metadata
*/
export declare function getPointFormat5(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat0_5>;
/**
* Reads a point using the Point Data Record Format 0
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 0 metadata
*/
export declare function getPointFormat6(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat6_10>;
/**
* Reads a point using the Point Data Record Format 7
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 7 metadata
*/
export declare function getPointFormat7(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat6_10>;
/**
* Reads a point using the Point Data Record Format 8
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 8 metadata
*/
export declare function getPointFormat8(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat6_10>;
/**
* Reads a point using the Point Data Record Format 9
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 9 metadata
*/
export declare function getPointFormat9(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat6_10>;
/**
* Reads a point using the Point Data Record Format 10
* @param reader - data reader, works like a DataView
* @param header - las header
* @param offset - where to start reading in the point data
* @param littleEndian - endianess. Defaults to true (LAS always LE but LAZ may have BE)
* @returns - The parsed point with Format 10 metadata
*/
export declare function getPointFormat10(reader: Reader | DataView, header: LASHeader, offset?: number, littleEndian?: boolean): VectorPointM<LASFormat6_10>;
/**
* Converts a number into a LASClassification
* @param classification - the number
* @returns - the LASClassification
*/
export declare function toLASClassification(classification: number): string;
/**
* Converts a number into a classification flag
* @param classFlag - the input
* @returns - the classification flag
*/
export declare function toLASClassificationFlag(classFlag: number): string;
/**
* Converts a number into a LASClassification v1.4
* @param classification - the number
* @returns - the LASClassification
*/
export declare function toLASClassification14(classification: number): string;
//# sourceMappingURL=getPoint.d.ts.map