Package hec.io
Class PairedDataContainerVertDatum
java.lang.Object
hec.io.DataContainer
hec.io.PairedDataContainer
hec.io.PairedDataContainerVertDatum
- All Implemented Interfaces:
IVerticalDatumOperations<PairedDataContainer,
,mil.army.usace.hec.metadata.VerticalDatumException> Serializable
,Cloneable
,mil.army.usace.hec.metadata.VerticalDatum
public class PairedDataContainerVertDatum
extends PairedDataContainer
implements mil.army.usace.hec.metadata.VerticalDatum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hec.io.DataContainer
DataContainer.VERTICAL_DATUM, DataContainer.VERTICAL_UNITS
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected mil.army.usace.hec.metadata.VerticalDatumContainer
Fields inherited from class hec.io.PairedDataContainer
ALLOCATE, CURVE_WRITE, curveVisible, date, datum, endingCurve, endingOrdinate, labels, labelsUsed, NORMAL_WRITE, numberCurves, numberOrdinates, offset, other, parameters, precisions, shift, startingCurve, startingOrdinate, switchXyAxis, transformType, types, units, writeMethod, xOrdinates, xparameter, xprecision, xtype, xunits, yOrdinates, yparameter, yprecision, ytype, yunits
Fields inherited from class hec.io.DataContainer
coordinateID, coordinateSystem, CURRENT_VERTICAL_DATUM_HEADER, CURRENT_VERTICAL_DATUM_KEY, dataType, fileLastWriteTimeMillis, fileName, fullName, horizontalDatum, horizontalUnits, lastWriteTimeMillis, location, locationTimezone, modified, otherInfo, storedAsdoubles, subVersion, supplementalInfo, version, VERTICAL_DATUM_INFO_HEADER, VERTICAL_DATUM_INFO_KEY, verticalDatum, verticalUnits, watershed, xOrdinate, yOrdinate, zOrdinate
-
Constructor Summary
ConstructorsConstructorDescriptionPublic constructorPublic constructorPairedDataContainerVertDatum
(PairedDataContainer tsc, mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Public constructorPairedDataContainerVertDatum
(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionclone()
Return a copy of this objectvoid
clone
(PairedDataContainer pdc) Copy this object into anothermil.army.usace.hec.metadata.VerticalDatumContainer
Extracts any verticalDatumInfo string in the supplementalInfo to a VerticalDatumContainer and removes the string from the supplementalInfo.boolean
forceVerticalDatum
(String datum) double
double
getCurrentOffset
(String unit) double
double
getNAVD88Offset
(String unit) double
double
getNGVD29Offset
(String unit) mil.army.usace.hec.metadata.VerticalDatumContainer
Returns the Vertical Datum Containervoid
insertVerticalDatum
(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Inserts the text representation a VerticalDatumContainer into the supplementalInfo field of a DataContainer object, replacing any existing vertical datum information in the fieldboolean
boolean
boolean
void
setVerticalDatumContainer
(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Sets the VerticalDatumContainer member of this object from the specified VerticalDatumContainervoid
setVerticalDatumInfo
(String xmlStr) boolean
boolean
toNAVD88()
boolean
toNGVD29()
boolean
toVerticalDatum
(String datum) Methods inherited from class hec.io.PairedDataContainer
allocateSpace, collapseVerticalDatum, copyCurve, copyCurves, copyLabels, copyXOrdinates, curveExists, enlargeCurve, enlargeXOrds, ensureCurveCapacity, ensureCurveExists, ensureCurvesCapacity, ensureLabelsCapacity, ensureXOrdCapacity, expandVerticalDatum, getAsString, getAsXML, getCurveCapacity, getEndingCurve, getEndingOrdinate, getLabels, getNumberCurves, getNumberOrdinates, getStartingCurve, getStartingOrdinate, getXOrdCapacity, getXOridnates, getXType, getXUnits, getYOridnates, getYType, getYUnits, guessLabelTemplate, printToConsole, setLabels, setNumberCurves, setNumberOrdinates, setStartingEndingCurve, setStartingEndingOrdinage, setValues, setXOrdinates, setXType, setXUnits, setYOrdinates, setYType, setYUnits
Methods inherited from class hec.io.DataContainer
clone, getFullName, getHorizontalDatum, getLatLong, getName, getStoreAsDoubles, getSupplementalInfo, getVerticalDatum, getVerticalUnits, setFullName, setHorizontalDatum, setLatLong, setName, setStoreAsDoubles, setSupplementalInfo, setVerticalDatum, setVerticalDatum, setVerticalUnits, setVerticalUnits, toString
-
Field Details
-
vdc
protected mil.army.usace.hec.metadata.VerticalDatumContainer vdc
-
-
Constructor Details
-
PairedDataContainerVertDatum
public PairedDataContainerVertDatum()Public constructor -
PairedDataContainerVertDatum
Public constructor- Parameters:
tsc
- A PairedDataContainer object to initialize from
-
PairedDataContainerVertDatum
public PairedDataContainerVertDatum(PairedDataContainer tsc, mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException Public constructor- Parameters:
tsc
- A PairedDataContainer object to initialize fromvdc
- A VerticalDatumContainer object to initialize from- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
PairedDataContainerVertDatum
public PairedDataContainerVertDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Public constructor- Parameters:
vdc
- A VerticalDatumContainer object to initialize from
-
-
Method Details
-
clone
Return a copy of this object- Overrides:
clone
in classPairedDataContainer
- Returns:
- a copy of this PairedDataContainer
-
clone
Copy this object into another- Overrides:
clone
in classPairedDataContainer
- Parameters:
pdc
- the object to copy this one into
-
getNativeVerticalDatum
- Specified by:
getNativeVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentVerticalDatum
- Specified by:
getCurrentVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isCurrentVerticalDatumEstimated
public boolean isCurrentVerticalDatumEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isCurrentVerticalDatumEstimated
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNativeVerticalDatum
public boolean toNativeVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNativeVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNGVD29
public boolean toNGVD29() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNGVD29
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNAVD88
public boolean toNAVD88() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNAVD88
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toVerticalDatum
public boolean toVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
toVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
forceVerticalDatum
public boolean forceVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
forceVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentOffset
public double getCurrentOffset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getCurrentOffset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentOffset
public double getCurrentOffset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getCurrentOffset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNGVD29Offset
public double getNGVD29Offset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getNGVD29Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNGVD29Offset
public double getNGVD29Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getNGVD29Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNAVD88Offset
public double getNAVD88Offset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getNAVD88Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNAVD88Offset
public double getNAVD88Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getNAVD88Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isNGVD29OffsetEstimated
public boolean isNGVD29OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isNGVD29OffsetEstimated
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isNAVD88OffsetEstimated
public boolean isNAVD88OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isNAVD88OffsetEstimated
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getVerticalDatumInfo
- Specified by:
getVerticalDatumInfo
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
setVerticalDatumInfo
public void setVerticalDatumInfo(String xmlStr) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
setVerticalDatumInfo
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
setVerticalDatumContainer
public void setVerticalDatumContainer(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException Sets the VerticalDatumContainer member of this object from the specified VerticalDatumContainer- Parameters:
vdc
- the VerticalDatumContainer to set this object from- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
extractVerticalDatum
public mil.army.usace.hec.metadata.VerticalDatumContainer extractVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException, IOExceptionDescription copied from class:DataContainer
Extracts any verticalDatumInfo string in the supplementalInfo to a VerticalDatumContainer and removes the string from the supplementalInfo.- Overrides:
extractVerticalDatum
in classDataContainer
- Returns:
- The VerticalDatumContainer
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
IOException
-
insertVerticalDatum
public void insertVerticalDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws IOException Description copied from class:DataContainer
Inserts the text representation a VerticalDatumContainer into the supplementalInfo field of a DataContainer object, replacing any existing vertical datum information in the field- Overrides:
insertVerticalDatum
in classDataContainer
- Parameters:
vdc
- The VerticalDatumContainer- Throws:
IOException
-
getVerticalDatumContainer
public mil.army.usace.hec.metadata.VerticalDatumContainer getVerticalDatumContainer()Returns the Vertical Datum Container- Specified by:
getVerticalDatumContainer
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Returns:
-