public class DataContainer
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DataContainer.VERTICAL_DATUM
Vertical datum choices
|
static class |
DataContainer.VERTICAL_UNITS
Vertical datum choices
|
| Modifier and Type | Field and Description |
|---|---|
int |
coordinateID
coordinateID = UTM zone #, or FIPS SPCS # ADS SPCS #
|
int |
coordinateSystem
coordinateSystem
|
int |
dataType
A flag indicating the data type of this data set.
|
long |
fileLastWriteTimeMillis
The last write time of the database or DSS file, in milliseconds since 01Jan1970 (system time)
Set to zero (0) if not defined
|
java.lang.String |
fileName
the name of the DSS File
|
java.lang.String |
fullName
the full DSS pathname
|
int |
horizontalDatum
horizontalDatum can be one of the following:
0 - unset
1 - NAD83
2 - NAD27
3 - WGS84
4 - WGS72
5 - Local (other)
|
int |
horizontalUnits
Horizontal Units can be one of the following:
0 - unspecified
1 - feet
2 - meeters
3 - Decimal Degrees
4 - Degrees Minutes Seconds
|
long |
lastWriteTimeMillis
The last write time of this data set, in milliseconds since 01Jan1970 (system time)
Set to zero (0) if not defined
|
java.lang.String |
location
The B Part of the DSS path
|
java.lang.String |
locationTimezone
Time zone name at the location
NOT the time zone of the data
(data may GMT and location PST)
|
boolean |
modified |
java.lang.Object |
otherInfo |
boolean |
storedAsdoubles
A flag indicating the precision of the data stored on disk Warning - some
older DSS programs cannot recognized double precision data
|
java.lang.String |
subVersion |
java.lang.String |
supplementalInfo
supplementalInfo is any additional information that describes this location
It MUST be in a "Keyword:Item;" format.
|
java.lang.String |
version
the F Part of the DSS Path
|
static java.lang.String |
VERTICAL_DATUM_INFO_HEADER |
static java.lang.String |
VERTICAL_DATUM_INFO_KEY |
int |
verticalDatum
verticalDatum can be one of the following:
0 - unset
1 - NAVD88
2 - NGVD29
3 - Local (other)
|
int |
verticalUnits
Vertical Units can be one of the following:
0 - unspecified
1 - feet
2 - meters
|
java.lang.String |
watershed
The A Part of the DSS path
|
double |
xOrdinate
Longitude, Easting or decimal degrees (negative for Western Hemisphere)
|
double |
yOrdinate
Latitude, Northing or decimal degrees
|
double |
zOrdinate
Elevation
|
| Constructor and Description |
|---|
DataContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clone(DataContainer dc) |
VerticalDatumContainer |
extractVerticalDatum()
Extracts any verticalDatumInfo string in the supplementalInfo to a
VerticalDatumContainer and removes the string from the supplementalInfo.
|
java.lang.String |
getFullName() |
java.lang.String |
getHorizontalDatum() |
boolean |
getLatLong(doubleContainer latitude,
doubleContainer longitude) |
java.lang.String |
getName() |
boolean |
getStoreAsDoubles() |
java.util.HashMap<java.lang.String,java.lang.String> |
getSupplementalInfo() |
java.lang.String |
getVerticalDatum() |
java.lang.String |
getVerticalUnits() |
void |
insertVerticalDatum(VerticalDatumContainer vdc)
Inserts the text representation a VerticalDatumContainer into the supplementalInfo field of a
DataContainer object, replacing any existing vertical datum information in the field
|
void |
setFullName(java.lang.String datasetName) |
void |
setHorizontalDatum(java.lang.String datum) |
void |
setLatLong(double latitude,
double longitude) |
void |
setName(java.lang.String datasetName) |
void |
setStoreAsDoubles(boolean storedAsdoubles) |
void |
setSupplementalInfo(java.util.HashMap<java.lang.String,java.lang.String> si)
Sets the supplemental info from a key, value map
|
void |
setVerticalDatum(DataContainer.VERTICAL_DATUM datum) |
void |
setVerticalDatum(java.lang.String datum) |
void |
setVerticalUnits(DataContainer.VERTICAL_UNITS units) |
void |
setVerticalUnits(java.lang.String units) |
java.lang.String |
toString() |
public static final java.lang.String VERTICAL_DATUM_INFO_KEY
public static final java.lang.String VERTICAL_DATUM_INFO_HEADER
public java.lang.String fullName
public java.lang.String watershed
public java.lang.String location
public java.lang.String version
public java.lang.String subVersion
public java.lang.String fileName
public boolean storedAsdoubles
public int dataType
public long lastWriteTimeMillis
public long fileLastWriteTimeMillis
public double xOrdinate
public double yOrdinate
public double zOrdinate
public int coordinateSystem
public int coordinateID
public int horizontalUnits
public int horizontalDatum
public int verticalUnits
public int verticalDatum
public java.lang.String locationTimezone
public java.lang.String supplementalInfo
public java.lang.Object otherInfo
public boolean modified
public void setName(java.lang.String datasetName)
public java.lang.String getName()
public void setFullName(java.lang.String datasetName)
public java.lang.String getFullName()
public void setStoreAsDoubles(boolean storedAsdoubles)
public boolean getStoreAsDoubles()
public void clone(DataContainer dc)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setLatLong(double latitude,
double longitude)
public boolean getLatLong(doubleContainer latitude, doubleContainer longitude)
public void setHorizontalDatum(java.lang.String datum)
public java.lang.String getHorizontalDatum()
public void setVerticalDatum(DataContainer.VERTICAL_DATUM datum)
public void setVerticalDatum(java.lang.String datum)
public java.lang.String getVerticalDatum()
public void setVerticalUnits(DataContainer.VERTICAL_UNITS units)
public void setVerticalUnits(java.lang.String units)
public java.lang.String getVerticalUnits()
public java.util.HashMap<java.lang.String,java.lang.String> getSupplementalInfo()
public void setSupplementalInfo(java.util.HashMap<java.lang.String,java.lang.String> si)
public VerticalDatumContainer extractVerticalDatum() throws hec.data.VerticalDatumException, java.io.IOException
dc - The DataContainerjava.lang.Exceptionhec.data.VerticalDatumExceptionjava.io.IOExceptionpublic void insertVerticalDatum(VerticalDatumContainer vdc) throws java.io.IOException
dc - The DataContainer,vdc - The VerticalDatumContainerjava.io.IOExceptionhec.data.VerticalDatumException