Difference between revisions of "TUFLOW Message 0318"

From Tuflow
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|alt_msg=NA
 
|alt_msg=NA
 
|type=[[WARNING]]
 
|type=[[WARNING]]
|message_desc=A polygon of zero area exists.  For example, the following lines in the .mif file indicates a polygon that is lenear.  The polygon has only three vertices and as the first and last vertices are always the same (in order to close the polygon) the polygon is therefore linear (zero area).
+
|message_desc=A polygon of zero area exists.  For example, the following lines in the .mif file indicates a polygon that is linear.  The polygon has only three vertices and as the first and last vertices are always the same (in order to close the polygon) the polygon is therefore linear (zero area).
 
<pre>
 
<pre>
 
Region  1
 
Region  1
Line 17: Line 17:
 
<pre>Area(obj, "sq km")=0 And Perimeter(obj, "km")>0</pre>
 
<pre>Area(obj, "sq km")=0 And Perimeter(obj, "km")>0</pre>
  
|discussion_page=* [[Talk:TUFLOW Message 0318|Discuss Message 0318]]
+
 
|link3=''
 
|link4=''
 
|prelink=[[TUFLOW_Message_0317|Message 0317]]
 
 
|uplink=[[0xxx_TUFLOW_Messages|0xxx Messages]]
 
|uplink=[[0xxx_TUFLOW_Messages|0xxx Messages]]
|nextlink=[[TUFLOW_Message_0319|Message 0319]]
 
 
}}
 
}}

Latest revision as of 11:26, 22 December 2022

TUFLOW Message
WARNING 0318 - Insufficient points for Region object in mif file. Region ignored.

Alternate Message
NA

Message Type
WARNING

Description
A polygon of zero area exists. For example, the following lines in the .mif file indicates a polygon that is linear. The polygon has only three vertices and as the first and last vertices are always the same (in order to close the polygon) the polygon is therefore linear (zero area).

Region  1
  3
355252.72 183143.42
355253.25 183140.56
355252.72 183143.42

Suggestions
Review and modify or delete any zero area polygons.
In order to select the polygons with zero area the simplest method to do this is using the select function in MapInfo. The query would look somethink like the below:

Area(obj, "sq m")=0

The query above will select any zero area polygons, however, if there are any points or lines in the same MapInfo table these will also be selected. To select just the region objects with zero area (and ignore points or lines), the following query should work:

Area(obj, "sq km")=0 And Perimeter(obj, "km")>0


Up
Go-up.png 0xxx Messages