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
IOException
public 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 IVertexReader
IOException
public double getXMin()
getXMin
in interface IVertexReader
public double getXMax()
getXMax
in interface IVertexReader
public double getYMin()
getYMin
in interface IVertexReader
public double getYMax()
getYMax
in interface IVertexReader
public double getZMin()
getZMin
in interface IVertexReader
public double getZMax()
getZMax
in interface IVertexReader
public boolean isSourceInGeographicCoordinates()
isSourceInGeographicCoordinates
in interface IVertexReader
public LinearUnits getLinearUnits()
public void setLinearUnits(LinearUnits linearUnits)
linearUnits
- a valid instancepublic ICoordinateTransform getCoordinateTransform()
getCoordinateTransform
in interface IVertexReader
public void setCoordinateTransform(ICoordinateTransform transform)
setCoordinateTransform
in interface IVertexReader
transform
- a valid transform or a null if none is to be applied.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getNumberOfVerticesInSource()
Copyright © 2021. All rights reserved.