public class BathymetryData extends Object
| Constructor and Description |
|---|
BathymetryData(File inputSoundingsFile,
File inputShorelineFile,
File inputIslandFile,
String dbfBathymetryField)
Load the test data from the specified files
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the overall bounds of the sounding and constraint data
|
List<PolygonConstraint> |
getIslandConstraints()
Get the island constraints
|
List<PolygonConstraint> |
getLakeConstraints()
Get the shoreline constraints
|
double |
getMaxZ()
Get the maximum sounding value in the source data
|
double |
getMeanZ()
Get the mean of the sounding values in the source data
|
double |
getMinZ()
Get the minimum sounding value in the source data
|
double |
getNominalPointSpacing()
Gets the nominal spacing for the data set.
|
List<Vertex> |
getReducedListOfSoundings(int nTarget)
Get a reduced list of the soundings.
|
Rectangle2D |
getSoundingBounds()
Get the bounds of the sounding data
|
List<Vertex> |
getSoundings()
Get a list of the soundings.
|
long |
getTimeToLoadData()
Gets the time required to load the input data
|
void |
printSummary(PrintStream ps)
Print a summary of the input data.
|
public BathymetryData(File inputSoundingsFile, File inputShorelineFile, File inputIslandFile, String dbfBathymetryField) throws IOException
The input soundings file may be a CSV file or a Shapefile. If the file is a Shapefile, there are two options for obtaining the depth coordinate. The depth coordinate may be taken from the z coordinates for each Shapefile point (if supplied) or they may be taken from a named field in the DBF file. If the dbfBathymetryField string is null, then the Z coordinate will be used. Otherwise, this class will use the named field.
inputSoundingsFile - a mandatory path for a CSV file giving soundingsinputShorelineFile - a mandatory path for a Shapefile file giving
soundingsinputIslandFile - an optional path for a Shapefile file giving
soundingsdbfBathymetryField - an option field used when the inputSoundingsFile
is a Shapefile indicating DBF field of interest.IOException - in the event of an unrecoverable I/O conditionpublic double getMinZ()
public double getMaxZ()
public double getMeanZ()
public double getNominalPointSpacing()
public List<Vertex> getReducedListOfSoundings(int nTarget)
nTarget - the target number of soundings for the listpublic List<PolygonConstraint> getLakeConstraints()
public List<PolygonConstraint> getIslandConstraints()
public Rectangle2D getSoundingBounds()
public Rectangle2D getBounds()
public long getTimeToLoadData()
public void printSummary(PrintStream ps)
ps - a valid print stream such as system output.Copyright © 2019. All rights reserved.