gis-tools-ts - v0.6.0
    Preparing search index...

    Interface LASHeader

    LAS Header Block Any field in the Public Header Block that is not required and is not used must be zero filled.

    interface LASHeader {
        encoding: number;
        extendedVariableLengthRecordOffset: number;
        extendedVariableLengthSize: number;
        fileCreationDay: number;
        fileCreationYear: number;
        generatingSoftware: string;
        headerSize: number;
        majorVersion: number;
        maxX: number;
        maxY: number;
        maxZ: number;
        minorVersion: number;
        minX: number;
        minY: number;
        minZ: number;
        numPoints: number;
        numPointsByReturn: number[];
        numVariableLengthRecords: number;
        offsetToPoints: number;
        pointDataFormatID: number;
        pointDataRecordLength: number;
        projectID1: number;
        projectID2: number;
        projectID3: number;
        projectID4: string;
        signature: string;
        sourceID: number;
        systemIdentifier: string;
        waveformDataPacketOffset: number;
        xOffset: number;
        xScaleFactor: number;
        yOffset: number;
        yScaleFactor: number;
        zOffset: number;
        zScaleFactor: number;
    }
    Index

    Properties

    encoding: number

    Global Encoding unsigned short 2 bytes.

    The meaning of GPS Time in the Point Records

    • 0 (not set) -> GPS time in the point record fields is GPS Week Time (the same as previous versions of LAS).
    • 1 (set) -> GPS Time is standard GPS Time (satellite GPS Time) minus 1 x 109. The offset moves the time back to near zero to improve floating point resolution.
    extendedVariableLengthRecordOffset: number

    Start of first Extended Variable Length Record - unsigned long long 8 bytes

    extendedVariableLengthSize: number

    Number of Extended Variable Length Records - unsigned long 4 bytes

    fileCreationDay: number

    File Creation Day Year unsigned short 2 bytes. 0 means no creation date

    Day, expressed as an unsigned short, on which this file was created. Day is computed as the Greenwich Mean Time (GMT) day. January 1 is considered day 1.

    fileCreationYear: number

    File Creation Day Year unsigned short 2 bytes. 0 means no creation date

    The year, expressed as a four digit number, in which the file was created.

    generatingSoftware: string

    Generating Software char[32] 32 bytes

    headerSize: number

    Header Size unsigned short 2 bytes

    The size, in bytes, of the Public Header Block itself. In the event that the header is extended by a software application through the addition of data at the end of the header, the Header Size field must be updated with the new header size. Extension of the Public Header Block is discouraged; the Variable Length Records should be used whenever possible to add custom header data. In the event a generating software package adds data to the Public Header Block, this data must be placed at the end of the structure and the Header Size must be updated to reflect the new size.

    majorVersion: number

    Version Major unsigned char 1 byte

    maxX: number

    Max X double 8 bytes

    maxY: number

    Max Y double 8 bytes

    maxZ: number

    Max Z double 8 bytes

    minorVersion: number

    Version Minor unsigned char 1 byte

    minX: number

    Min X double 8 bytes

    minY: number

    Min Y double 8 bytes

    minZ: number

    Min Z double 8 bytes

    numPoints: number

    Number of point records unsigned long 4 bytes

    numPointsByReturn: number[]

    Number of points by return unsigned long[5] 20 bytes

    numVariableLengthRecords: number

    Number of Variable Length Records unsigned int 4 bytes This field contains the current number of Variable Length Records. This number must be updated if the number of Variable Length Records changes at any time.

    offsetToPoints: number

    Offset to Point Data unsigned int 4 bytes

    The actual number of bytes from the beginning of the file to the first field of the first point record data field. This data offset must be updated if any software adds data from the Public Header Block or adds/removes data to/from the Variable Length Records.

    pointDataFormatID: number

    Point Data Format ID unsigned short 1 byte

    The point data format ID corresponds to the point data record format type. LAS 1.4 defines types 0-10.

    pointDataRecordLength: number

    Point Data Record Length unsigned short 2 bytes

    projectID1: number

    Project ID - GUID data 1 unsigned long 4 bytes. 0 means no project ID

    projectID2: number

    Project ID - GUID data 2 unsigned short 2 byte. 0 means no project ID

    projectID3: number

    Project ID - GUID data 3 unsigned short 2 byte. 0 means no project ID

    projectID4: string

    Project ID - GUID data 4 unsigned char[8] 8 bytes. 0 means no project ID

    signature: string

    File Signature ("LASF") char[4] 4 bytes The file signature must contain the four characters "LASF", and it is required by the LAS specification. These four characters can be checked by user software as a quick look initial determination of file type.

    sourceID: number

    File Source ID unsigned short 2 bytes

    File Source ID (Flight Line Number if this file was derived from an original flight line): This field should be set to a value between 1 and 65,535, inclusive. A value of zero (0) is interpreted to mean that an ID has not been assigned. In this case, processing software is free to assign any LAS 1.2 3 valid number. Note that this scheme allows a LIDAR project to contain up to 65,535 unique sources. A source can

    systemIdentifier: string

    System Identifier char[32] 32 bytes

    waveformDataPacketOffset: number

    Start of Waveform Data Packet Record - Unsigned long long 8 bytes

    xOffset: number

    X offset double 8 bytes

    xScaleFactor: number

    X scale factor double 8 bytes

    yOffset: number

    Y offset double 8 bytes

    yScaleFactor: number

    Y scale factor double 8 bytes

    zOffset: number

    Z offset double 8 bytes

    zScaleFactor: number

    Z scale factor double 8 bytes