Support Files : Filters : Geometry Examples : Geometry is a Straight Line
 

Geometry is a Straight Line

<GeometryIsAStraightLine/> is applied only to line features. All vertices on the line must be in a straight line. This is not a filter tag; it is tested within a filter and does not contain a filter like other geometry tests.

The Tolerance attribute is mandatory and must be defined when using the this test. Tolerance units are degrees.

The following is an example of this test, with the tolerance property set to zero (0), for the line features available.

<!-- S-58 Test 50: Check that all the nodes that compose the geometry of any RECTRC with CATTRK=1 [based on a system of fixed marks] -->

<!-- or NAVLNE are on a straight line. -->

<!-- a.- NAVLNE -->

<Test Id="S-58 50 NAVLNE">

<Filter>

<Not>

<GeometryIsAStraightLine Tolerance="0"/>

</Not>

</Filter>

<Message Level="WARNING" Description="Check that all the nodes that compose the geometry of any NAVLNE are on a straight line." Reference="S-58 Test 50. Conformity to: Logical consistency"/>

</Test>