Dfs3Builder Class |
The builder works in two stages. The first stage all header information and information of the dynamic items are provided. In the second stage static items are added. Then a dfs file is ready, and data for the dynamic items can be added.
To get the final file, call GetFile.
To go from the first to the second stage by calling CreateFile(String), which will actually create a file on the disc.
The following must be set during stage 1: SpatialAxis, TemporalAxis, DataType, Projection
The SpatialAxis must be a 3D axis.
Use the DfsFileFactory to create classes to set.
Namespace: DHI.Generic.MikeZero.DFS.dfs123
The Dfs3Builder type exposes the following members.
Name | Description | |
---|---|---|
Dfs3Builder | Initializes a new instance of the Dfs3Builder class |
Name | Description | |
---|---|---|
ApplicationTitle |
Get/Set the title of the application writing the file.
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
ApplicationVersion |
Set the version number of the application writing the file.
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
DataType |
Get/Set the data type.
(Inherited from Dfs123Builder.)The data type tags the file as a special dfs file type. There exists no global system for maintaining these tag-variables. The tag-variables should only be interpreted locally within one model-complex e.g. MIKE 21. The application programmer can tag bathymetries, result files, input files freely. This is a stage 1 method. Setting in stage 2 will fail. | |
DeleteValueByte |
Gets/sets the delete value of type byte
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
DeleteValueDouble |
Gets/sets the delete value of type double
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
DeleteValueFloat |
Gets/sets the delete value of type float
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
DeleteValueInt |
Gets/sets the delete value of type int
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
DeleteValueUnsignedInt |
Gets/sets the delete value of type unsigned int
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
FileTitle |
Get/Set the title of the file.
(Inherited from Dfs123Builder.)This is a stage 1 method. Setting in stage 2 has no effect. | |
Projection |
Get/Set the geographical projection and reference coordinates.
(Inherited from Dfs123Builder.)This must be set. This is a stage 1 method. Setting in stage 2 will fail. | |
SpatialAxis |
Sets the spatial axis of the file. This must be one of the
3D axes.
(Overrides Dfs123BuilderSpatialAxis.)This must be set. This is a stage 1 method. Setting in stage 2 will fail. | |
TemporalAxis |
Sets the temporal axis of the file.
(Inherited from Dfs123Builder.)This must be set. This is a stage 1 method. Setting in stage 2 will fail. |
Name | Description | |
---|---|---|
AddCustomBlock |
Add a custom block to the file.
(Inherited from Dfs123Builder.)This is a stage 1 method. | |
AddDynamicItem |
Add a dynamic item to the file.
(Inherited from Dfs123Builder.) | |
AddStaticItem(String, eumQuantity, Array) |
Creates and adds a static item storing the arrayData.
(Inherited from Dfs123Builder.)The size of the arrayData must match the size of the spatial axis set in SpatialAxis This is a stage 2 method. | |
AddStaticItem(String, eumQuantity, IDfsSpatialAxis, Array) |
Creates and adds a static item storing the arrayData.
(Inherited from Dfs123Builder.)This will add a static item with a size different from the one of the dynamic items. Having a static item in size different from the dynamic items is utilized by a few specific files of MIKE SHE. The size of the arrayData must match the size of the spatial axis set in axis This is a stage 2 method. | |
Create |
Create a new builder that will build a dfs2 file
| |
CreateFile |
Creates a file on the disc. Moves to the second build stage
(Inherited from Dfs123Builder.) | |
Equals | (Inherited from Object.) | |
GetFile |
Return the file as a Dfs3File | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetDataType |
Set the data type.
(Inherited from Dfs123Builder.)The data type tags the file as a special dfs file type. There exists no global system for maintaining these tag-variables. The tag-variables should only be interpreted locally within one model-complex e.g. MIKE 21. The application programmer can tag bathymetries, result files, input files freely. This is a stage 1 method. Setting in stage 2 will fail. | |
SetEncodingKeys |
Sets the encoding key for compressing the dfs file.
See GetEncodeKey(Int32, Int32, Int32) for the definition
of the encode key values.
(Inherited from Dfs123Builder.)Compression is only supported when all dynamic items are of type float. All dynamic items must have a size that is compatible with the encode key values, i.e, for all values in the key arrays: xKey[i] < xCount && yKey[y] < yCount && zKey[i] < zCount | |
SetGeographicalProjection |
Set the geographical projection and reference coordinates.
(Inherited from Dfs123Builder.)This must be set. This is a stage 1 method. Setting in stage 2 will fail. | |
SetSpatialAxis |
Get/Set the spatial axis of the file. This must be one of the
allowed axis, depending on the file builder
(Inherited from Dfs123Builder.)This must be set. This is a stage 1 method. Setting in stage 2 will fail. | |
SetTemporalAxis |
Sets the temporal axis of the file.
(Inherited from Dfs123Builder.)This must be set. This is a stage 1 method. Setting in stage 2 will fail. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Validate |
Validate will return a string of issues from the item builder.
When this returns an empty list, the item has been properly build.
(Inherited from Dfs123Builder.)This is a stage 1 method. |