Class ALasWriter
- java.lang.Object
-
- org.hortonmachine.gears.io.las.core.Las
-
- org.hortonmachine.gears.io.las.core.ALasWriter
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
LasWriterBuffered
public abstract class ALasWriter extends Las implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ALasWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidaddPoint(LasRecord record)Writes a point to file.abstract voidclose()Close the writer and release resources.abstract voidopen()Opens the file and write the header info.abstract voidsetBounds(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)Possibility to set the min and max bounds.abstract voidsetBounds(ILasHeader header)Possibility to set the min and max bounds.abstract voidsetGpsTimeType(int timeType)Defines whether GPS Week Time (0) or Adjusted Standard GPS time (1) is used on the GPSTime field of LAS records.abstract voidsetOffset(double xOffset, double yOffset, double zOffset)Possibility to define the offset for the data.abstract voidsetPointFormat(int pointFormat)abstract voidsetScales(double xScale, double yScale, double zScale)Possibility to define the scale for the data.abstract voidsetWriteGroundElevation(boolean doWriteGroundElevation)
-
-
-
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 ExceptionOpens 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
-
close
public abstract void close() throws ExceptionClose the writer and release resources.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
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.
-
-