Click or drag to resize

IDfs2Builder Methods

The IDfs2Builder type exposes the following members.

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

This is a stage 1 method.

(Inherited from IDfs123Builder.)
Public methodAddDynamicItem
Add a dynamic item to the file.
(Inherited from IDfs123Builder.)
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.

(Inherited from IDfs123Builder.)
Public methodAddStaticItem(String, eumQuantity, IDfsSpatialAxis, Array)
Creates and adds a static item of a different size than the other items of the dfs file.

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.

(Inherited from IDfs123Builder.)
Public methodCreateFile
Creates a file on the disc. Moves to the second build stage
(Inherited from IDfs123Builder.)
Public methodCreateStream
Creates a file in the provided stream.. Moves to the second build stage
(Inherited from IDfs123Builder.)
Public methodGetFile
Return the file as a Dfs1File
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.

(Inherited from IDfs123Builder.)
Public methodSetEncodingKeys (Inherited from IDfs123Builder.)
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.

(Inherited from IDfs123Builder.)
Public methodSetNumberOfTimeSteps
Sets the number of time steps in the file.

This is only required in streaming context, where it is not possible to update the dfs header when everything is written to the file. In a non-streaming context this should not be used.

This is a stage 1 method.

(Inherited from IDfs123Builder.)
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.

(Inherited from IDfs123Builder.)
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.

(Inherited from IDfs123Builder.)
Public methodSetTimeInfo
Sets the time of the first data set and the time span of data in the file.

This is only required in streaming context, where it is not possible to update the dfs header when everything is written to the file. In a non-streaming context this should not be used.

This is a stage 1 method.

(Inherited from IDfs123Builder.)
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.

(Inherited from IDfs123Builder.)
Top
See Also