Class ALasReader

    • Constructor Detail

      • ALasReader

        public ALasReader()
    • Method Detail

      • open

        public abstract void open()
                           throws Exception
        Open the las data source.
        Throws:
        Exception
      • getLasFile

        public abstract File getLasFile()
        Get a reference to the las file.
        Returns:
        the las file.
      • getHeader

        public abstract ILasHeader getHeader()
        Get the las header.
        Returns:
        the las header.
      • hasNextPoint

        public abstract boolean hasNextPoint()
                                      throws IOException
        Check if there are still data available.
        Returns:
        true if there are still data to read.
        Throws:
        IOException
      • rewind

        public abstract void rewind()
                             throws IOException
        Rewind the iterator to start from scratch.
        Throws:
        IOException
      • getPointAtAddress

        public abstract LasRecord getPointAtAddress​(long address)
                                             throws IOException
        Reads a dot at a given address.
        Parameters:
        address - the file address of the record to read.
        Returns:
        the read record.
        Throws:
        IOException
      • getPointAt

        public abstract LasRecord getPointAt​(long pointPosition)
                                      throws IOException
        Reads a dot at a given point position.
        Parameters:
        pointPosition - the point position.
        Returns:
        the read record.
        Throws:
        IOException
      • readNextLasXYZAddress

        public abstract double[] readNextLasXYZAddress()
                                                throws IOException
        Reads the position and the record address in the file of the next point.
        Returns:
        the array containing [x, y, z, address].
        Throws:
        IOException
      • seek

        public abstract void seek​(long pointNumber)
                           throws IOException
        Move to a given point in the file.

        The position starts with 0 at the first point position.

        Note that not hasNextPoint() can be called after seek, getNextPoint() must be called directly instead.

        Parameters:
        pointNumber - the number of records to skip.
        Throws:
        IOException
      • setOverrideGpsTimeType

        public abstract void setOverrideGpsTimeType​(int type)
        Overrides the time type.

        The time type is sometimes found set wrong by certain softwares. This gives the possibility to override it and allow for proper time conversion.

        Parameters:
        type - the type to set.