public class PairedDataContainerVertDatum extends PairedDataContainer implements hec.data.IVerticalDatum
DataContainer.VERTICAL_DATUM, DataContainer.VERTICAL_UNITS| Modifier and Type | Field and Description |
|---|---|
VerticalDatumContainer |
vdc |
ALLOCATE, CURVE_WRITE, date, datum, labels, labelsUsed, NORMAL_WRITE, numberCurves, numberOrdinates, offset, other, shift, switchXyAxis, transformType, writeMethod, xOrdinates, xparameter, xprecision, xtype, xunits, yOrdinates, yparameter, yprecision, ytype, yunitscoordinateID, coordinateSystem, dataType, fileName, fullName, horizontalDatum, horizontalUnits, location, modified, otherInfo, storedAsdoubles, subVersion, supplementalInfo, version, verticalDatum, verticalUnits, watershed, xOrdinate, yOrdinate, zOrdinate| Constructor and Description |
|---|
PairedDataContainerVertDatum()
Public constructor
|
PairedDataContainerVertDatum(PairedDataContainer tsc)
Public constructor
|
PairedDataContainerVertDatum(PairedDataContainer tsc,
VerticalDatumContainer vdc)
Public constructor
|
PairedDataContainerVertDatum(VerticalDatumContainer vdc)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Return a copy of this object
|
void |
clone(PairedDataContainer pdc)
Copy this object into another
|
boolean |
forceVerticalDatum(java.lang.String datum)
Sets the objects current vertical datum to the specified vertical datum without changing any elevations.
|
double |
getCurrentOffset()
Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in the current datum in the current unit
|
double |
getCurrentOffset(java.lang.String unit)
Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in the current datum
|
java.lang.String |
getCurrentVerticalDatum()
Retrieves the current vertical datum of the object's elevation(s)
|
java.lang.String |
getNativeVerticalDatum()
Retrieves the native vertical datum of the object's elevation(s)
|
double |
getNAVD88Offset()
Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 in the current unit
|
double |
getNAVD88Offset(java.lang.String unit)
Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88
|
double |
getNGVD29Offset()
Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 in the current unit
|
double |
getNGVD29Offset(java.lang.String unit)
Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29
|
java.lang.String |
getVerticalDatumInfo()
Retrieves a text representation of the vertical datum information
|
boolean |
isCurrentVerticalDatumEstimated()
Retrieves whether the elevation(s) in the current vertical datum were generated by an estimated offset
|
boolean |
isNAVD88OffsetEstimated()
Retrieves whether the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 is an estimate
|
boolean |
isNGVD29OffsetEstimated()
Retrieves whether the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 is an estimate
|
void |
setVerticalDatumContainer(VerticalDatumContainer vdc)
Sets the VerticalDatumContainer member of this object from the specified VerticalDatumContainer
|
void |
setVerticalDatumInfo(java.lang.String xmlStr)
Initializes the object from a string initializer
|
boolean |
toNativeVerticalDatum()
Changes the object's elevation(s) (if necessary) to its native vertical datum
|
boolean |
toNAVD88()
Changes the object's elevation(s) (if necessary) to NAVD88
|
boolean |
toNGVD29()
Changes the object's elevation(s) (if necessary) to NGVD29
|
boolean |
toVerticalDatum(java.lang.String datum)
Changes the object's elevation(s) (if necessary) to the specified vertical datum
|
copyCurve, copyCurves, copyLabels, copyXOrdinates, curveExists, enlargeCurve, enlargeXOrds, ensureCurveCapacity, ensureCurveExists, ensureCurvesCapacity, ensureLabelsCapacity, ensureXOrdCapacity, getAsString, getAsXML, getCurveCapacity, getXOrdCapacity, guessLabelTemplateclone, getHorizontalDatum, getLatLong, getVerticalDatum, getVerticalUnits, setHorizontalDatum, setLatLong, setVerticalDatum, setVerticalDatum, setVerticalUnits, setVerticalUnits, toStringpublic VerticalDatumContainer vdc
public PairedDataContainerVertDatum()
public PairedDataContainerVertDatum(PairedDataContainer tsc)
tsc - A PairedDataContainer object to initialize frompublic PairedDataContainerVertDatum(PairedDataContainer tsc, VerticalDatumContainer vdc) throws hec.data.VerticalDatumException
tsc - A PairedDataContainer object to initialize fromvdc - A VerticalDatumContainer object to initialize fromhec.data.VerticalDatumExceptionpublic PairedDataContainerVertDatum(VerticalDatumContainer vdc) throws hec.data.VerticalDatumException
vdc - A VerticalDatumContainer object to initialize fromhec.data.VerticalDatumExceptionpublic java.lang.Object clone()
clone in class java.lang.Objectpublic void clone(PairedDataContainer pdc)
clone in class PairedDataContainerpdc - the object to copy this one intopublic java.lang.String getNativeVerticalDatum()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetNativeVerticalDatum in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the native vertical datum is not setpublic java.lang.String getCurrentVerticalDatum()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetCurrentVerticalDatum in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the current vertical datum is not setpublic boolean isCurrentVerticalDatumEstimated()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumisCurrentVerticalDatumEstimated in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the current vertical datum is not setpublic boolean toNativeVerticalDatum()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumtoNativeVerticalDatum in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the native vertical datum is not setpublic boolean toNGVD29()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumtoNGVD29 in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain enough information to perform the operationpublic boolean toNAVD88()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumtoNAVD88 in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain enough information to perform the operationpublic boolean toVerticalDatum(java.lang.String datum)
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumtoVerticalDatum in interface hec.data.IVerticalDatumdatum - the vertical datum to change to: hec.data.VerticalDatumException - if the object doesn't contain enough information to perform the operationpublic boolean forceVerticalDatum(java.lang.String datum)
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumforceVerticalDatum in interface hec.data.IVerticalDatumdatum - the vertical datum to change to: hec.data.VerticalDatumException - if the object doesn't contain enough information to perform the operationpublic double getCurrentOffset()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetCurrentOffset in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic double getCurrentOffset(java.lang.String unit)
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetCurrentOffset in interface hec.data.IVerticalDatumunit - the unit to retrieve the offset inhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic double getNGVD29Offset()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetNGVD29Offset in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic double getNGVD29Offset(java.lang.String unit)
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetNGVD29Offset in interface hec.data.IVerticalDatumunit - the unit to retrieve the offset inhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic double getNAVD88Offset()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetNAVD88Offset in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic double getNAVD88Offset(java.lang.String unit)
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetNAVD88Offset in interface hec.data.IVerticalDatumunit - the unit to retrieve the offset inhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic boolean isNGVD29OffsetEstimated()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumisNGVD29OffsetEstimated in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic boolean isNAVD88OffsetEstimated()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumisNAVD88OffsetEstimated in interface hec.data.IVerticalDatumhec.data.VerticalDatumException - if the object doesn't contain the required offset informationpublic java.lang.String getVerticalDatumInfo()
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumgetVerticalDatumInfo in interface hec.data.IVerticalDatumhec.data.VerticalDatumExceptionpublic void setVerticalDatumInfo(java.lang.String xmlStr)
throws hec.data.VerticalDatumException
hec.data.IVerticalDatumsetVerticalDatumInfo in interface hec.data.IVerticalDatumxmlStr - String initializer. May be either an XML fragment of the following format or
simply the name of the native vertical datum (in which case no datum conversion
is supported).
<vertical-datum-info "unit"="ft">
<native-datum>OTHER</native-datum>
<local-datum-name>Pensacola</local-datum-name>
<elevation>1407.22</elevation>
<offset "estimate"="true">
<to-datum>NAVD-88</to-datum>
<value>1.457</value>
</offset>
<offset "estimate"="false">
<to-datum>NGVD-29</to-datum>
<value>1.07</value>
</offset>
</vertical-datum-info>
The <native-datum> element must be one of:
All <offset> elements specify the value to add to an
elevation in the native datum to get an elevation in the datum specified <to-datum>
datum (in the unit specified in the <vertical-datum-info> element.
The <to-datum> values are limited to NGVD-29 and NAVD-88. No offset
is required to be specified for the native datum.
hec.data.VerticalDatumExceptionpublic void setVerticalDatumContainer(VerticalDatumContainer vdc) throws hec.data.VerticalDatumException
vdc - the VerticalDatumContainer to set this object fromhec.data.VerticalDatumException