public class TinHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
POINTENVELOPE_EXPAND |
| Constructor and Description |
|---|
TinHandler(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
double angleThreshold,
double distanceThreshold,
Double maxEdgeLength,
int threadsNum)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filterOnAllData(org.hortonmachine.gears.io.las.ALasDataManager lasHandler)
Filter data on thresholds of all available data on the tin.
|
void |
filterOnLeftOverData() |
void |
finalCleanup(double pFinalCleanupDist) |
com.vividsolutions.jts.index.strtree.STRtree |
generateTinIndex(Double maxEdgeLength)
Generate a spatial index on the tin geometries.
|
int |
getCurrentGroundPointsNum()
Returns the current size of the
tinCoordinateList representing teh current ground points. |
int |
getCurrentNonGroundPointsNum()
Returns the size of the points currently defined as being non-ground.
|
double[] |
getMinMaxElev() |
com.vividsolutions.jts.geom.Geometry[] |
getTriangles()
Get the triangles of the current active tin.
|
void |
resetTin() |
void |
setStartCoordinates(List<com.vividsolutions.jts.geom.Coordinate> coordinateList)
Sets the initial coordinates to start with.
|
org.geotools.data.simple.SimpleFeatureCollection |
toFeatureCollection()
Create a
FeatureCollection from the current tin triangles
with information about the vertexes elevation. |
org.geotools.data.simple.SimpleFeatureCollection |
toFeatureCollectionOthers() |
org.geotools.data.simple.SimpleFeatureCollection |
toFeatureCollectionTinPoints() |
public static final double POINTENVELOPE_EXPAND
public TinHandler(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
double angleThreshold,
double distanceThreshold,
Double maxEdgeLength,
int threadsNum)
pm - the monitor.crs - the crs to use for feature creation.distanceThreshold - the fixed maximum distance threshold to use.maxEdgeLength - the max edge length for the longest edge of a triangle (if larger, it is ignored)threadsNum - the number of threads to use for parallel operations.public void setStartCoordinates(List<com.vividsolutions.jts.geom.Coordinate> coordinateList)
Generates the tin on the first set of coordinates and adds the
coordinates to the tinCoordinateList for future use.
Note that it is mandatory to call this method to initialize.
coordinateList - the initial list of coordinates.public com.vividsolutions.jts.geom.Geometry[] getTriangles()
public int getCurrentGroundPointsNum()
tinCoordinateList representing teh current ground points.public int getCurrentNonGroundPointsNum()
public void filterOnAllData(org.hortonmachine.gears.io.las.ALasDataManager lasHandler)
throws Exception
Note: At the first run of this method, only thresholds are calculated.
lasHandler - the las data handler of all data.Exceptionpublic void filterOnLeftOverData()
public void finalCleanup(double pFinalCleanupDist)
public void resetTin()
public com.vividsolutions.jts.index.strtree.STRtree generateTinIndex(Double maxEdgeLength)
public org.geotools.data.simple.SimpleFeatureCollection toFeatureCollection()
FeatureCollection from the current tin triangles
with information about the vertexes elevation.public org.geotools.data.simple.SimpleFeatureCollection toFeatureCollectionOthers()
public org.geotools.data.simple.SimpleFeatureCollection toFeatureCollectionTinPoints()
public double[] getMinMaxElev()
Copyright © 2005-2017 HydroloGIS. All Rights Reserved.