Difference between revisions of "TUFLOW Message 2172"

From Tuflow
Jump to navigation Jump to search
Line 4: Line 4:
 
|type=[[ERROR]]
 
|type=[[ERROR]]
 
|message_desc=Reading .mid file, tdrdmifblf.  Erroneous line below.
 
|message_desc=Reading .mid file, tdrdmifblf.  Erroneous line below.
|suggestions=????
+
|suggestions=This error occurs when TUFLOW is reading the the .mid file.  This should only occur when there is a discrepancy in the data in the .MIF and .MID files.  An example is provided below for a 2d_zsh layer below:<br>
 +
The MIF file contains information about the projection, attributes and GIS location of the objects.  In the text below, this contains information about the number, names and types of the attributes.
 +
<pre>
 +
Columns 4
 +
  Z Float
 +
  dZ Float
 +
  Shape_Width_or_dMax Float
 +
  Shape_Options Char(20)
 +
Data
 +
</pre>
 +
The corresponding .MID file contains only the attribute data for each object.  The corresponding .MID file for the above, should contain four attributes (three numeric and one character type).  This data is stored as comma seperated: For example for a line, with an elevation Z of 99, dz of 0, shape width of 5 and Shape_Options of "Max", the .MID file should look like the below:
 +
<pre>
 +
99,0,5,"Max"
 +
</pre>
 +
If the.MID file has become corrupted, there may be a mismatch in the data types, eg a character in a numeric field:
 +
<pre>
 +
"Corrupt",0,5,"Max"
 +
</pre>
 +
Or to few fields, instead of four columns if only one is present the .MID file would appear as below:
 +
<pre>
 +
99
 +
</pre>
 +
Both of the last two examples are invalid and may cause an error 2172 to be generated.  Re-export the file from MapInfo or if using other software for generating the files, check that the file is in the correct format.
 
|discussion_page=* [[Talk:TUFLOW Message 2172|Discuss Message 2172]]
 
|discussion_page=* [[Talk:TUFLOW Message 2172|Discuss Message 2172]]
 
|link3=''
 
|link3=''

Revision as of 15:59, 12 July 2013

TUFLOW Message
ERROR 2172 - Reading .mid file, tdrdmifblf. Erroneous line below.

Alternate Message
NA

Message Type
ERROR

Description
Reading .mid file, tdrdmifblf. Erroneous line below.

Suggestions
This error occurs when TUFLOW is reading the the .mid file. This should only occur when there is a discrepancy in the data in the .MIF and .MID files. An example is provided below for a 2d_zsh layer below:
The MIF file contains information about the projection, attributes and GIS location of the objects. In the text below, this contains information about the number, names and types of the attributes.

Columns 4
  Z Float
  dZ Float
  Shape_Width_or_dMax Float
  Shape_Options Char(20)
Data

The corresponding .MID file contains only the attribute data for each object. The corresponding .MID file for the above, should contain four attributes (three numeric and one character type). This data is stored as comma seperated: For example for a line, with an elevation Z of 99, dz of 0, shape width of 5 and Shape_Options of "Max", the .MID file should look like the below:

99,0,5,"Max"

If the.MID file has become corrupted, there may be a mismatch in the data types, eg a character in a numeric field:

"Corrupt",0,5,"Max"

Or to few fields, instead of four columns if only one is present the .MID file would appear as below:

99

Both of the last two examples are invalid and may cause an error 2172 to be generated. Re-export the file from MapInfo or if using other software for generating the files, check that the file is in the correct format.


Up
Go-up.png 2xxx Messages