Class ALasWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      ALasWriter()  
    • Constructor Detail

      • ALasWriter

        public ALasWriter()
    • Method Detail

      • setScales

        public abstract void setScales​(double xScale,
                                       double yScale,
                                       double zScale)
        Possibility to define the scale for the data.

        If not set it defaults to 0.01,0.01,0.001.

        Parameters:
        xScale - the x scaling value.
        yScale - the y scaling value.
        zScale - the z scaling value.
      • setOffset

        public abstract void setOffset​(double xOffset,
                                       double yOffset,
                                       double zOffset)
        Possibility to define the offset for the data.

        If not set it defaults to 0.0,0.0,0.0.

        Parameters:
        xOffset - the x scaling value.
        yOffset - the y scaling value.
        zOffset - the z scaling value.
      • setBounds

        public abstract void setBounds​(double xMin,
                                       double xMax,
                                       double yMin,
                                       double yMax,
                                       double zMin,
                                       double zMax)
        Possibility to set the min and max bounds.

        If not set they all default to 0.

        Parameters:
        xMin -
        xMax -
        yMin -
        yMax -
        zMin -
        zMax -
      • setBounds

        public abstract void setBounds​(ILasHeader header)
        Possibility to set the min and max bounds.
        Parameters:
        header - the las header (as read by the reader).
      • open

        public abstract void open()
                           throws Exception
        Opens the file and write the header info.
        Throws:
        Exception
      • addPoint

        public abstract void addPoint​(LasRecord record)
                               throws IOException
        Writes a point to file.
        Parameters:
        record - the point record.
        Throws:
        IOException
      • setWriteGroundElevation

        public abstract void setWriteGroundElevation​(boolean doWriteGroundElevation)
      • setPointFormat

        public abstract void setPointFormat​(int pointFormat)
      • setGpsTimeType

        public abstract void setGpsTimeType​(int timeType)
        Defines whether GPS Week Time (0) or Adjusted Standard GPS time (1) is used on the GPSTime field of LAS records.
        Parameters:
        timeType - 0 to set GPS Week Time or 1 to set Adjusted Standard GPS time.