public class VertexReaderLas extends Object implements IVertexReader, Closeable
| Constructor and Description |
|---|
VertexReaderLas(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ICoordinateTransform |
getCoordinateTransform()
Gets the coordinate transform associated with this instance.
|
LinearUnits |
getLinearUnits()
Gets the linear units for the coordinate system used by the data.
|
long |
getNumberOfVerticesInSource()
Gets the number of vertices in the source file
|
double |
getXMax()
Gets the maximum x coordinate in the sample
|
double |
getXMin()
Gets the minimum x coordinate in the sample
|
double |
getYMax()
Gets the maximum y coordinate in the sample
|
double |
getYMin()
Gets the minimum y coordinate in the sample
|
double |
getZMax()
Gets the maximum z coordinate in the sample
|
double |
getZMin()
Gets the minimum z coordinate in the sample
|
boolean |
isSourceInGeographicCoordinates()
Indicates whether the source data was in geographic coordinates
|
List<Vertex> |
read(IMonitorWithCancellation monitor) |
void |
setCoordinateTransform(ICoordinateTransform transform)
Sets a coordinate transform to be used for mapping values from the source
file to vertex coordinates.
|
void |
setFilter(ILasRecordFilter filter)
Set a filter to be used when reading the content of a LAS file
|
void |
setLinearUnits(LinearUnits linearUnits)
Sets the linear units for the coordinate system used by the horizontal (x
and y) coordinates of the data.
|
void |
setMaximumNumberOfVertices(long maximumNumberOfVertices)
Set the maximum number of vertices to load from a file.
|
public VertexReaderLas(File file) throws IOException
IOExceptionpublic void setFilter(ILasRecordFilter filter)
filter - a valid filter or a null if all records are to be accepted.public void setMaximumNumberOfVertices(long maximumNumberOfVertices)
maximumNumberOfVertices - a positive integerpublic List<Vertex> read(IMonitorWithCancellation monitor) throws IOException
read in interface IVertexReaderIOExceptionpublic double getXMin()
getXMin in interface IVertexReaderpublic double getXMax()
getXMax in interface IVertexReaderpublic double getYMin()
getYMin in interface IVertexReaderpublic double getYMax()
getYMax in interface IVertexReaderpublic double getZMin()
getZMin in interface IVertexReaderpublic double getZMax()
getZMax in interface IVertexReaderpublic boolean isSourceInGeographicCoordinates()
isSourceInGeographicCoordinates in interface IVertexReaderpublic LinearUnits getLinearUnits()
public void setLinearUnits(LinearUnits linearUnits)
linearUnits - a valid instancepublic ICoordinateTransform getCoordinateTransform()
getCoordinateTransform in interface IVertexReaderpublic void setCoordinateTransform(ICoordinateTransform transform)
setCoordinateTransform in interface IVertexReadertransform - a valid transform or a null if none is to be applied.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getNumberOfVerticesInSource()
Copyright © 2021. All rights reserved.