Class LasWriterBuffered

  • All Implemented Interfaces:
    AutoCloseable

    public class LasWriterBuffered
    extends ALasWriter
    A las writer.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • LasWriterBuffered

        public LasWriterBuffered​(File outFile,
                                 org.opengis.referencing.crs.CoordinateReferenceSystem crs)
        A las file writer.
        Parameters:
        outFile - the output file.
        crs - the crs. If null, no prj file is written.
    • Method Detail

      • setScales

        public void setScales​(double xScale,
                              double yScale,
                              double zScale)
        Description copied from class: ALasWriter
        Possibility to define the scale for the data.

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

        Specified by:
        setScales in class ALasWriter
        Parameters:
        xScale - the x scaling value.
        yScale - the y scaling value.
        zScale - the z scaling value.
      • setOffset

        public void setOffset​(double xOffset,
                              double yOffset,
                              double zOffset)
        Description copied from class: ALasWriter
        Possibility to define the offset for the data.

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

        Specified by:
        setOffset in class ALasWriter
        Parameters:
        xOffset - the x scaling value.
        yOffset - the y scaling value.
        zOffset - the z scaling value.
      • setBounds

        public void setBounds​(double xMin,
                              double xMax,
                              double yMin,
                              double yMax,
                              double zMin,
                              double zMax)
        Description copied from class: ALasWriter
        Possibility to set the min and max bounds.

        If not set they all default to 0.

        Specified by:
        setBounds in class ALasWriter
      • setBounds

        public void setBounds​(ILasHeader header)
        Description copied from class: ALasWriter
        Possibility to set the min and max bounds.
        Specified by:
        setBounds in class ALasWriter
        Parameters:
        header - the las header (as read by the reader).
      • setGpsTimeType

        public void setGpsTimeType​(int timeType)
        Description copied from class: ALasWriter
        Defines whether GPS Week Time (0) or Adjusted Standard GPS time (1) is used on the GPSTime field of LAS records.
        Specified by:
        setGpsTimeType in class ALasWriter
        Parameters:
        timeType - 0 to set GPS Week Time or 1 to set Adjusted Standard GPS time.