Package hec.data
Interface IVerticalDatum
- All Superinterfaces:
mil.army.usace.hec.metadata.VerticalDatum
Deprecated.
Interface for classes that work with vertical datums.
This interface should be replaced with hec-nucleus interface
-
Method Summary
Modifier and TypeMethodDescriptionbooleanforceVerticalDatum(String datum) Deprecated.Sets the objects current vertical datum to the specified vertical datum without changing any elevations.doubleDeprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in the current datum in the current unitdoublegetCurrentOffset(String unit) Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in the current datumDeprecated.Retrieves the current vertical datum of the object's elevation(s)Deprecated.Retrieves the native vertical datum of the object's elevation(s)doubleDeprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 in the current unitdoublegetNAVD88Offset(String unit) Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88doubleDeprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 in the current unitdoublegetNGVD29Offset(String unit) Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29Deprecated.Deprecated.Retrieves a text representation of the vertical datum informationbooleanDeprecated.Retrieves whether the elevation(s) in the current vertical datum were generated by an estimated offsetbooleanDeprecated.Retrieves whether the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 is an estimatebooleanDeprecated.Retrieves whether the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 is an estimatevoidDeprecated.voidsetVerticalDatumInfo(String initStr) Deprecated.Initializes the object from a string initializerbooleanDeprecated.Changes the object's elevation(s) (if necessary) to its native vertical datumbooleantoNAVD88()Deprecated.Changes the object's elevation(s) (if necessary) to NAVD88booleantoNGVD29()Deprecated.Changes the object's elevation(s) (if necessary) to NGVD29booleantoVerticalDatum(String datum) Deprecated.Changes the object's elevation(s) (if necessary) to the specified vertical datum
-
Method Details
-
getNativeVerticalDatum
Deprecated.Retrieves the native vertical datum of the object's elevation(s)- Specified by:
getNativeVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- the native vertical datum of the object's elevation(s)
- Throws:
VerticalDatumException- if the native vertical datum is not set
-
getCurrentVerticalDatum
Deprecated.Retrieves the current vertical datum of the object's elevation(s)- Specified by:
getCurrentVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- the current vertical datum of the object's elevation(s)
- Throws:
VerticalDatumException- if the current vertical datum is not set
-
isCurrentVerticalDatumEstimated
Deprecated.Retrieves whether the elevation(s) in the current vertical datum were generated by an estimated offset- Specified by:
isCurrentVerticalDatumEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- whether the elevation(s) in the current vertical datum were generated by an estimated offset
- Throws:
VerticalDatumException- if the current vertical datum is not set
-
toNativeVerticalDatum
Deprecated.Changes the object's elevation(s) (if necessary) to its native vertical datum- Specified by:
toNativeVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- whether a change was necessary (i.e., false = no elevations were modified)
- Throws:
VerticalDatumException- if the native vertical datum is not set
-
toNGVD29
Deprecated.Changes the object's elevation(s) (if necessary) to NGVD29- Specified by:
toNGVD29in interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- whether a change was necessary (i.e., false = no elevations were modified)
- Throws:
VerticalDatumException- if the object doesn't contain enough information to perform the operation
-
toNAVD88
Deprecated.Changes the object's elevation(s) (if necessary) to NAVD88- Specified by:
toNAVD88in interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- whether a change was necessary (i.e., false = no elevations were modified)
- Throws:
VerticalDatumException- if the object doesn't contain enough information to perform the operation
-
toVerticalDatum
Deprecated.Changes the object's elevation(s) (if necessary) to the specified vertical datum- Specified by:
toVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Parameters:
datum- the vertical datum to change to:- NGVD29
- NAVD88
- LOCAL
- NATIVE
- Returns:
- whether a change was necessary (i.e., false = no elevations were modified)
- Throws:
VerticalDatumException- if the object doesn't contain enough information to perform the operation
-
forceVerticalDatum
Deprecated.Sets the objects current vertical datum to the specified vertical datum without changing any elevations. This function bypasses normal vertical datum operations and should be called only in situations where the objects elevations are known to be in a datum other than the current datum.- Specified by:
forceVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Parameters:
datum- the vertical datum to change to:- NGVD29
- NAVD88
- LOCAL
- NATIVE
- Returns:
- whether the specified vertical datum differs from the objects's current vertical datum before the call
- Throws:
VerticalDatumException- if the object doesn't contain enough information to perform the operation
-
getCurrentOffset
Deprecated.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- Specified by:
getCurrentOffsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- the offset added to the an elevation in the native vertical datum to generate an elevation in the current datum in the current unit
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
getCurrentOffset
Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in the current datum- Specified by:
getCurrentOffsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Parameters:
unit- the unit to retrieve the offset in- Returns:
- the offset added to the an elevation in the native vertical datum to generate an elevation in the current datum
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
getNGVD29Offset
Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 in the current unit- Specified by:
getNGVD29Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 in the current unit
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
getNGVD29Offset
Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29- Specified by:
getNGVD29Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Parameters:
unit- the unit to retrieve the offset in- Returns:
- the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
getNAVD88Offset
Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 in the current unit- Specified by:
getNAVD88Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 in the current unit
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
getNAVD88Offset
Deprecated.Retrieves the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88- Specified by:
getNAVD88Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Parameters:
unit- the unit to retrieve the offset in- Returns:
- the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
isNGVD29OffsetEstimated
Deprecated.Retrieves whether the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 is an estimate- Specified by:
isNGVD29OffsetEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- whether the offset added to the an elevation in the native vertical datum to generate an elevation in NGVD29 is an estimate
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
isNAVD88OffsetEstimated
Deprecated.Retrieves whether the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 is an estimate- Specified by:
isNAVD88OffsetEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- whether the offset added to the an elevation in the native vertical datum to generate an elevation in NAVD88 is an estimate
- Throws:
VerticalDatumException- if the object doesn't contain the required offset information
-
getVerticalDatumInfo
Deprecated.Retrieves a text representation of the vertical datum information- Specified by:
getVerticalDatumInfoin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
- a text representation of the vertical datum information
- Throws:
VerticalDatumException
-
setVerticalDatumInfo
Deprecated.Initializes the object from a string initializer- Specified by:
setVerticalDatumInfoin interfacemil.army.usace.hec.metadata.VerticalDatum- Parameters:
initStr- 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).
Example XML fragment:<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:- NGVD-29 (or NGVD 29, NGVD29) - no <local-datum-name> element allowed
- NAVD-88 (or NAVD 88, NAVD88) - no <local-datum-name> element allowed
- OTHER (or LOCAL) - <local-datum-name> element allowed but not required
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.- Throws:
VerticalDatumException
-
getVerticalDatumContainer
VerticalDatumContainer getVerticalDatumContainer()Deprecated.- Specified by:
getVerticalDatumContainerin interfacemil.army.usace.hec.metadata.VerticalDatum
-
setVerticalDatumContainer
Deprecated.- Throws:
VerticalDatumException
-
VerticalDatum