Quality control and mapping files use filters. There are two types of filtering operators:
• comparison
• logical
These can be combined to create complex filtering rules.
An example of a filter is shown below.
<!-- QC Test 56: Check that BUAARE objects are covered by a LNDARE Area. --> <Test Id="S-58 56"> <Filter> <Not> <GeometryIsWithin> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="LNDARE" /> <PrimitiveIsEqualTo Primitive="Area" /> </And> </Filter> </GeometryIsWithin> </Not> </Filter> <Message Level="WARNING" Description="Check that any BUAARE object is covered by a LNDARE object of type Area." Reference="S-58 Test 56. Conformity to: LogicalConsistency" /> </Test> |
The entries in red are operators:
• Not and And are logical operators.
• ObjectAcronymIsEqualTo, PrimitiveIsEqualTo, and GeometryIsWithin are comparison operators.
Also, filters can use internal functions. Internal function are called from the application and apply specific tests to data. For more information, see Internal Functions.