Click or drag to resize
Dfs123Builder Class
Common functionality for building dfs 1, 2 and 3 files.

Special for these files are that all their dynamic and static items use the same spatial axis.

The following must be set: SpatialAxis, TemporalAxis, DataType, Projection

Use the DfsFileFactory to create classes for setting.

Inheritance Hierarchy

Namespace: DHI.Generic.MikeZero.DFS.dfs123
Assembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
public abstract class Dfs123Builder : IDfs123Builder

The Dfs123Builder type exposes the following members.

Properties
  NameDescription
Public propertyApplicationTitle
Get/Set the title of the application writing the file.

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyApplicationVersion
Set the version number of the application writing the file.

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyDataType
Get/Set the data type.

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.

Public propertyDeleteValueByte
Gets/sets the delete value of type byte

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyDeleteValueDouble
Gets/sets the delete value of type double

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyDeleteValueFloat
Gets/sets the delete value of type float

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyDeleteValueInt
Gets/sets the delete value of type int

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyDeleteValueUnsignedInt
Gets/sets the delete value of type unsigned int

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyFileTitle
Get/Set the title of the file.

This is a stage 1 method. Setting in stage 2 has no effect.

Public propertyProjection
Get/Set the geographical projection and reference coordinates.

This must be set.

This is a stage 1 method. Setting in stage 2 will fail.

Public propertySpatialAxis
Get/Set the spatial axis of the file. This must be one of the allowed axis, depending on the file builder

This must be set.

This is a stage 1 method. Setting in stage 2 will fail.

Public propertyTemporalAxis
Sets the temporal axis of the file.

This must be set.

This is a stage 1 method. Setting in stage 2 will fail.

Top
Methods
  NameDescription
Public methodAddCustomBlock
Add a custom block to the file.

This is a stage 1 method.

Public methodAddDynamicItem
Add a dynamic item to the file.
Public methodAddStaticItem(String, eumQuantity, Array)
Creates and adds a static item storing the arrayData.

The size of the arrayData must match the size of the spatial axis set in SpatialAxis

This is a stage 2 method.

Public methodAddStaticItem(String, eumQuantity, IDfsSpatialAxis, Array)
Creates and adds a static item storing the arrayData.

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.

Public methodCreateFile
Creates a file on the disc. Moves to the second build stage
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetDataType
Set the data type.

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.

Public methodSetEncodingKeys
Public methodSetGeographicalProjection
Set the geographical projection and reference coordinates.

This must be set.

This is a stage 1 method. Setting in stage 2 will fail.

Public methodSetSpatialAxis
Get/Set the spatial axis of the file. This must be one of the allowed axis, depending on the file builder

This must be set.

This is a stage 1 method. Setting in stage 2 will fail.

Public methodSetTemporalAxis
Sets the temporal axis of the file.

This must be set.

This is a stage 1 method. Setting in stage 2 will fail.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validate will return a string of issues from the item builder. When this returns an empty list, the item has been properly build.

This is a stage 1 method.

Top
See Also