Comparison operators check features, attributes or primitives against parameters set by the operators or against other features. See the following tables for a list of comparison operators.
Features | ||
| ||
Description | Find a feature that is equal/not equal to a feature acronym. For additional information on using logical operators with this tag, see Not-Equal-To Tags. | |
Attributes | • • | |
Example | Check if AIRARE or RUNWAY features are part of collection object that is not a C_ASSO collection object. | |
<Filter> <And> <ObjectAcronymIsNotEqualTo Acronym="C_ASSO"/> <FeatureHasComponent> <Filter> <Or> <ObjectAcronymIsEqualTo Acronym="AIRARE"/> <ObjectAcronymIsEqualTo Acronym="RUNWAY"/> </Or> </Filter> </FeatureHasComponent> </And> </Filter> | ||
| ||
Description | Find a feature acronym that matches the given value. This operator uses regular expressions, see Regular Expressions. | |
Attributes | • • | |
Example | Find all features with acronyms that begin with the characters BOY | |
<Filter> <And> <ObjectAcronymIsLike Acronym=”BOY.*”/> <AttributeValueIsUndefined Acronym="COLPAT"/> </And> </Filter> | ||
| ||
Description | Find a feature that is a master in a master/slave relationship. | |
Attributes | – | |
Example | Find all BOYCAR features that are masters. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym=”BOYCAR”/> <ObjectIsAMaster /> </And> </Filter> | ||
| ||
Description | Find a feature that is a slave in a master/slave relationship. | |
Attributes | – | |
Example | Find features with a HEIGHT attribute value that are also slave objects. | |
<Filter> <And> <AttributeHasValue Acronym="HEIGHT"/> <ObjectIsASlave/> </And> </Filter> | ||
| ||
Description | Find features that are part of a collection | |
Attributes | – | |
Example | Find a feature with a value for the OBJNAM attribute that is also part of a collection object. | |
<Filter> <And> <AttributeHasValue Acronym="OBJNAM"/> <ObjectIsACollectionComponent/> </And> </Filter> | ||
| ||
Description | Find a feature that is a master to a slave object. | |
Attributes | • • | |
Example | Find BOYCAR features that are masters to light features. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym=”BOYCAR”/> <ObjectIsAMasterTo Acronym=”LIGHTS”/> </And> </Filter> | ||
| ||
Description | Find a feature that is slave to a master object. | |
Attributes | • • | |
Example | Find a feature that contains a HEIGHT value and is also a slave to the buoy features listed in the filter. | |
<Filter> <And> <AttributeHasValue Acronym="HEIGHT"/> <ObjectIsASlave/> <Or> <ObjectIsASlaveTo Acronym="BOYCAR"/> <ObjectIsASlaveTo Acronym="BOYINB"/> <ObjectIsASlaveTo Acronym="BOYISD"/> <ObjectIsASlaveTo Acronym="BOYLAT"/> <ObjectIsASlaveTo Acronym="BOYSAW"/> <ObjectIsASlaveTo Acronym="BOYSPP"/> </Or> </And> </Filter> | ||
Attributes | ||
| ||
Description | Find an attribute that is (or is not) assigned to the feature. | |
Attributes | • • • • | |
Example | Find a feature that contains the SCAMIN attribute | |
<Filter> <AttributeAcronymIsEqualTo Acronym="SCAMIN"/> </Filter | ||
| ||
Description | Find an attribute that is assigned to a feature. This operator uses regular expressions, see Regular Expressions. | |
Attributes | • • • • | |
Example | Find an attribute that begins with the characters SCA. | |
<Filter> <AttributeAcronymIsLike Acronym="SCA.*"/> </Filter> | ||
| ||
Description | Find an attribute value that is equal to or not equal to a value. For additional information on using logical operators with this tag, see Not-Equal-To Tags. | |
Attributes | • • • • • • | |
Example 1 | Find an M_QUAL feature with a CATZOC attribute value of 2 or 3. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="M_QUAL"/> <Or> <AttributeValueIsEqualTo Acronym="CATZOC" Value="2"/> <AttributeValueIsEqualTo Acronym="CATZOC" Value="3"/> </Or> </And> </Filter> | ||
Example 2 | Find a WRECKS feature that has POSACC spatial attribute defined and is within an M_ACCY feature where M_ACCY has a POSACC spatial attribute value equal to the POSACC spatial attribute value of WRECKS. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="WRECKS "/> <AttributeHasValue Acronym="POSACC" SpatialAttribute="True"/> <GeometryIsWithin> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="M_ACCY"/> <AttributeValueIsEqualTo Acronym="POSACC" SourceFeature="True" SpatialAttribute="True"/> </And> </Filter> </GeometryIsWithin> </And> </Filter> | ||
| ||
Description | Find an attribute value that is less than/greater than value. | |
Attributes | • • • • | |
Example | Find a DEPARE area object where DRVAL2 is equal to or less than 0. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="DEPARE"/> <PrimitiveIsEqualTo Primitive="Area"/> <AttributeValueIsLessThanOrEqualTo Acronym="DRVAL2" Value="0"/> </And> </Filter> | ||
| ||
Description | Find an attribute value that is equal to a value. This operator uses regular expressions, see Regular Expressions | |
Attributes | • • • • • | |
Example | Find features where DATEND is defined and check if the value is not a number between 4 to 8 digits. | |
<Filter> <And> <AttributeHasValue Acronym="DATEND"/> <Not> <AttributeValueIsLike Acronym="DATEND" Value="[0-9]{4,8}"/> </Not> </And> </Filter> | ||
| ||
Description | Find a feature attribute value that is undefined or unknown. | |
Attributes | • • • | |
Example | Find features that have a NATION attribute that is undefined or unknown. | |
<Filter> <Or> <AttributeValueIsUndefined Acronym="NATION"/> <AttributeValueIsUnknown Acronym="NATION"/> </Or> </Filter> | ||
| ||
Description | Find features that have an attribute with a value, including unknown. | |
Attributes | • • • | |
Example | Find features with a value for the MARSYS attribute. | |
<Filter> <AttributeValueIsDefined Acronym="MARSYS"/> </Filter> | ||
| ||
Description | Find an attribute value that is between a minimum and maximum range | |
Attributes | • • • • • | |
Example | Find area, line, or point features with a MAC attribute set to 54 and TIM attributes between | |
<Filter> <And> <Or> <PrimitiveIsEqualTo Primitive="Area"/> <PrimitiveIsEqualTo Primitive="Line"/> <PrimitiveIsEqualTo Primitive="Point"/> </Or> <AttributeValueIsEqualTo Acronym="MAC" Value="54"/> <And> <AttributeValueIsBetween Acronym="TIM" Min="0" Max="999"/> </And> </And> </Filter> | ||
| ||
Description | Find an attribute value that includes the character, text or numeric value being searched. • If the attribute type is alphanumeric or string, the filter locates the string value or characters. • If the attribute type is text, the filter opens the text file that is stored in the attribute to find the string in the text. • If the attribute type is list, the filter searches for the numeric value in the list (for example, | |
Attributes | • • • • • • • | |
Example 1 | Find any INFORM attribute value that contains leading or trailing spaces. | |
<Filter> <And> <AttributeHasValue Acronym="INFORM"/> <Or> <AttributeValueContains Acronym="INFORM" Value=" " BeginsWith="True"/> <AttributeValueContains Acronym="INFORM" Value=" " EndsWith="True"/> </Or> </And> </Filter> | ||
Example 2 | Find a feature where the INFORM or TXTDSC attributes do not begin with the attribute value contained in CLSNAM. | |
<Filter> <Not> <Or> <AttributeValueContains Acronym="INFORM" Acronym2="CLSNAM" BeginsWith="True"/> <AttributeValueContains Acronym="TXTDSC" Acronym2="CLSNAM" BeginsWith="True"/> </Or> </Not> </Filter> | ||
| ||
Description | Find an attribute that has a value. The value can be of any type (text, integer, etc), except unknown. | |
Attributes | • • • | |
Example | Find PICREP or PUBREF attributes that do not contain a value. | |
<Filter> <Not> <Or> <AttributeHasValue Acronym="PICREP"/> <AttributeHasValue Acronym="PUBREF"/> </Or> </Not> </Filter> | ||
| ||
Description | Find a feature where all its attribute values are the same as the source feature. The source feature is the one being tested and passing through the filter. This filter is only applicable when it is inside a geometry filter. | |
Attributes |
| |
Example | Find a BERTHS feature that shares a spatial with another BERTHS feature and has identical attributes. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="BERTHS"/> <GeometrySharesSpatial> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="BERTHS"/> <AllAttributesEqualToSourceFeature/> </And> </Filter> </GeometrySharesSpatial> </And> </Filter> | ||
| ||
Description | Find the attribute value that is equal to the direction of digitization (angle). This operator is only be used for straight lines. | |
Attributes | • • • | |
Example | Find a NAVLNE feature that has a value for ORIENT where the line bearing (direction of digitization) is within 5 degrees of the ORIENT value. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="NAVLNE"/> <AttributeHasValue Acronym="ORIENT"/> <Not> <Or> <AttributeValueEqualsDirectionOfDigitization Acronym="ORIENT" <AttributeValueEqualsDirectionOfDigitization Acronym="ORIENT" </Or> </Not> </And> </Filter> | ||
| ||
Description | Compare two attribute values using an operator. | |
Attributes | • • Acronym2= "attribute acronym" Second attribute to compare. • Operator= "=" "!=" "<" (less than), "=<" (less than or equals to), ">", ">=" • • • | |
Example 1 | Find a feature where DRVAL1 is larger than DRVAL2. | |
<Filter> <And> <AttributeHasValue Acronym="DRVAL1"/> <AttributeHasValue Acronym="DRVAL2"/> <CompareAttributeValues Acronym1="DRVAL1" Acronym2="DRVAL2" Operator=">"/> </And> </Filter> | ||
Example 2 | Find a feature with VALSOU defined within a DEPARE area, where the VALSOU of the source feature is less than the DRVAL1 of the DEPARE feature. | |
<Filter> <And> <AttributeHasValue Acronym="VALSOU"/> <GeometryIsWithin> <Filter> <And> <PrimitiveIsEqualTo Primitive="Area"/> <ObjectAcronymIsEqualTo Acronym="DEPARE"/> <CompareAttributeValues Acronym1="VALSOU" Acronym2="DRVAL1" SourceFeature1="True" Operator="<="/> </And> </Filter> </GeometryIsWithin> </And> </Filter> | ||
| ||
Description | Find list values that are within a given set. | |
Attributes | • • | |
Example 1 | Find any list value that include 1, 3, 5 (e.g. 1,5,3,3 or 3, 5) | |
<Filter> <AttributeValuesWithin Acronym="COLOUR" Values="1,3,5"/> </Filter> | ||
Example 2 | Find any list value other than 1, 3, 5 (e.g. 2 or 1, 2 or 1, 4, 5) | |
<Filter> <Not> <AttributeValuesWithin Acronym="COLOUR" Values="1,3,5"/> </Not> </Filter> | ||
Primitives | ||
| ||
Description | Find if the geometric primitive matches. | |
Attributes | • • S-57: Point, Line, Area, Sounding, Text, Image • CARIS: Polygon, Symbol, Name, Sounding, SpotHeight, Line and Point • DGN: Point, Line, Area, Symbol | |
Example 1 | Find area features that contain unknown or undefined values for the dirimp attribute. | |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Area"/> <Or> <AttributeValueIsUndefined Acronym="dirimp"/> <AttributeValueIsUnknown Acronym="dirimp"/> </Or> </And> </Filter> | ||
Example 2 | Map an IC32 mangrove symbol to a VEGATN point feature with CATVEG value of 21. | |
<Object FeatureCode="IC32" Description="Mangrove"> <Filter> <PrimitiveIsEqualTo Primitive="Symbol"/> </Filter> <MapObject> <MapObjectAcronym Acronym="VEGATN"/> <SetAttributeValue Acronym="CATVEG" Value="21"/> </MapObject> </Object> | ||
| ||
Description | Find if primitive has a Z component | |
Attributes |
| |
Example | Find any feature with a Z value. | |
<Filter> <PrimitiveHasZValue/> </Filter> | ||
| ||
Description | Find if the text value is equal/less than/greater than the given value. | |
Attributes | • • (Value or Acronym must be specified) • • | |
Example | Find all text features where text is not equal to the feature’s NAM attribute. | |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Text"/> <Not> <TextValueIsEqualTo Acronym="NAM"/> </Not> </And> </Filter> | ||
Example 2 | Find a text feature and convert its content to a number before comparing to the value specified. If the text contains 2.3 or 2.30, the values will match as they are compared as numbers, and not as literal text. | |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Text"/> <TextValueIsEqualTo Value="2.3" Numeric="True"/> </And> </Filter> | ||
Depth | ||
| ||
Description | Find a depth or height value that is equal/greater than/less than an attribute value or Z value. | |
Attributes | • • • • • | |
Example 1 | Find any SOUNDG feature that is within a DEPARE where the Z value of the sounding is less than or equal to the DRVAL1 of the DEPARE. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="SOUNDG"/> <GeometryIsWithin> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="DEPARE"/> <AttributeHasValue Acronym="DRVAL1"/> <ZValueIsLessThanOrEqualTo Acronym="DRVAL1" </And> </Filter> </GeometryIsWithin> </And> </Filter> | ||
Example 2 | Find any UWTROC feature with VALSOU that is at the same location as a SOUNDG feature where the sounding Z value is equal to the VALSOU of the UWTROC. | |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="UWTROC"/> <AttributeHasValue Acronym="VALSOU"/> <GeometryEquals> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="SOUNDG"/> <ZValueIsEqualTo SourceFeatureAcronym="VALSOU" </And> </Filter> </GeometryEquals> </And> </Filter> | ||
Example 3 | Find a sounding where the HDH attribute is defined and is not equal to the depth of the sounding. These are negative sounding values to be compared with positive HDH values, therefore the Z values are multiplied by -1 before comparing them to the HDH attribute value. | |
<Filter> | ||
S-57 Product Metadata Subfields | |
| |
Definition | Find if an attribute value is the same as a metadata attribute. |
Attributes | • • |
Example | Find features with an INFORM attribute that contains the value from the CSCL product metadata subfield. |
<Filter> <And> <DataSourceHasAttribute Acronym="CSCL"/> <AttributeHasValue Acronym="INFORM"/> <AttributeValueContains Acronym="INFORM" MetaDataKey="CSCL"/> </And> </Filter> | |
| |
Definition | Find if an attribute value is equal/not equal to a metadata attribute value. |
Attributes | • • |
Example 1 | Find features with the VERDAT attribute defined where its value is equal to that in the Vertical Datum (VDAT) product metadata subfield. |
<Filter> <And> <DataSourceHasAttribute Acronym="VDAT"/> <AttributeHasValue Acronym="VERDAT"/> <AttributeValueIsEqualTo Acronym="VERDAT" MetaDataKey="VDAT"/> </And> </Filter> | |
| |
Definition | Find if an attribute value is greater than/lesser than/equal to a metadata attribute value. |
Attributes | • • |
Example | Find a SCAMIN value that is set to a smaller value (larger scale) than the compilation scale in the product subfield CSCL. |
<Filter> <And> <DataSourceHasAttribute Acronym="CSCL"/> <AttributeHasValue Acronym="SCAMIN"/> <AttributeValueIsLessThan Acronym="SCAMIN" MetaDataKey="CSCL"/> </And> </Filter> | |
| |
Description | Find an attribute value that is equal to a value. This operator uses regular expressions, see Regular Expressions |
Attributes | • • |
Example | Find if the issue date is (ISDT) was in 2015. |
<Filter> <AttributeValueIsLike MetaDataKey="ISDT" Value="2015.*" /> </Filter> | |
| |
Description | Find if the product has a value for the metadata subfield specified. |
Attributes | • |
Example | Find if the product has the HUNI subfield defined and compare if the HUNITS attribute value in a feature is equal to the HUNI subfield in the product. |
<Filter> <And> <DataSourceHasAttribute Acronym="HUNI"/> <AttributeHasValue Acronym="HUNITS"/> <AttributeValueIsEqualTo Acronym="HUNITS" MetaDataKey="HUNI"/> </And> </Filter> | |
| |
Description | Find if a collection feature contains features that meet the criteria set in the filter. This operator requires additional filters. |
Attributes | – |
Example | Find C_ASSO collection features that include T_TIMS and T_HMON features |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="C_ASSO"/> <FeatureHasComponent> <Filter> <Or> <ObjectAcronymIsEqualTo Acronym="T_TIMS"/> <ObjectAcronymIsEqualTo Acronym="T_HMON"/> </Or> </Filter> </FeatureHasComponent> </And> </Filter> | |
| |
Description | Find if a feature is a slave of a master feature that meet the criteria set in the filter. This operator requires additional filters. |
Attributes | – |
Example | Find features that have a slave relationship to another that is not part of a C_ASSO collection object. |
<Filter> <FeatureHasMaster> <Filter> <Not> <FeatureIsAComponentOf> <Filter> <ObjectAcronymIsEqualTo Acronym="C_ASSO" /> </Filter> </FeatureIsAComponentOf> </Not> </Filter> </FeatureHasMaster> </Filter> | |
| |
Description | Find if a master feature contains slaves that meet the criteria set in the filter. This operator requires additional filters. |
Attributes | – |
Example | Find a master object where DATEND, DATSTA, PEREND, or PERSTA attributes are not equal to the corresponding attribute on its slave. |
<Filter> <FeatureHasSlave> <Filter> <Or> <AttributeValueIsNotEqualTo Acronym="DATEND" SourceFeature="True"/> <AttributeValueIsNotEqualTo Acronym="DATSTA" SourceFeature="True"/> <AttributeValueIsNotEqualTo Acronym="PEREND" SourceFeature="True"/> <AttributeValueIsNotEqualTo Acronym="PERSTA" SourceFeature="True"/> </Or> </Filter> </FeatureHasSlave> </Filter> | |
| |
Description | Find if a feature is a part of a collection object that passes the filter. This operator requires additional filters |
Attributes | – |
Example | Find a slave feature that is not a component of a C_ASSO collection object. |
<Filter> <FeatureHasMaster> <Filter> <Not> <FeatureIsAComponentOf> <Filter> <ObjectAcronymIsEqualTo Acronym="C_ASSO" /> </Filter> </FeatureIsAComponentOf> </Not> </Filter> </FeatureHasMaster> </Filter> | |
Feature Relations | |
| |
Description | Find if a collection feature contains features that meet the criteria set in the filter. This operator requires additional filters. |
Attributes | – |
Example | Find C_ASSO collection features that include T_TIMS and T_HMON features |
<Filter> <And> <ObjectAcronymIsEqualTo Acronym="C_ASSO"/> <FeatureHasComponent> <Filter> <Or> <ObjectAcronymIsEqualTo Acronym="T_TIMS"/> <ObjectAcronymIsEqualTo Acronym="T_HMON"/> </Or> </Filter> </FeatureHasComponent> </And> </Filter> | |
| |
Description | Find if a feature is a slave of a master feature that meet the criteria set in the filter. This operator requires additional filters. |
Attributes | – |
Example | Find features that have a slave relationship to another that is not part of a C_ASSO collection object. |
<Filter> <FeatureHasMaster> <Filter> <Not> <FeatureIsAComponentOf> <Filter> <ObjectAcronymIsEqualTo Acronym="C_ASSO" /> </Filter> </FeatureIsAComponentOf> </Not> </Filter> </FeatureHasMaster> </Filter> | |
| |
Description | Find if a master feature contains slaves that meet the criteria set in the filter. This operator requires additional filters. |
Attributes | – |
Example | Find a master object where DATEND, DATSTA, PEREND, or PERSTA attributes are not equal to the corresponding attribute on its slave. |
<Filter> <FeatureHasSlave> <Filter> <Or> <AttributeValueIsNotEqualTo Acronym="DATEND" SourceFeature="True"/> <AttributeValueIsNotEqualTo Acronym="DATSTA" SourceFeature="True"/> <AttributeValueIsNotEqualTo Acronym="PEREND" SourceFeature="True"/> <AttributeValueIsNotEqualTo Acronym="PERSTA" SourceFeature="True"/> </Or> </Filter> </FeatureHasSlave> </Filter> | |
| |
Description | Find if a feature is a part of a collection object that passes the filter. This operator requires additional filters |
Attributes | – |
Example | Find a slave feature that is not a component of a C_ASSO collection object. |
<Filter> <FeatureHasMaster> <Filter> <Not> <FeatureIsAComponentOf> <Filter> <ObjectAcronymIsEqualTo Acronym="C_ASSO" /> </Filter> </FeatureIsAComponentOf> </Not> </Filter> </FeatureHasMaster> </Filter> | |
Geometry | |
| |
Description | Find a feature’s geometry that touches, but does not overlap, the geometry of another feature. |
Example | Find an feature with geometry that touches DEPARE area feature with a DRVAL2 attribute that is less than or equal to 0. |
<GeometryTouches> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="DEPARE"/> <PrimitiveIsEqualTo Primitive="Area"/> <AttributeValueIsLessThanOrEqualTo Acronym="DRVAL2" Value="0"/> </And> </Filter> </GeometryTouches> | |
| |
Description | Find if a feature’s geometry is completely contained within the geometry of a another feature.
|
Example | Find features within a LNDARE area or line. |
<GeometryIsWithin> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> <Or> <PrimitiveIsEqualTo Primitive="Area"/> <PrimitiveIsEqualTo Primitive="Line"/> </Or> </And> </Filter> </GeometryIsWithin> | |
| |
Description | Find if a feature overlaps another feature.. |
Example | Check for a case where a feature overlaps a LNDARE area feature. |
<GeometryOverlaps> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> <PrimitiveIsEqualTo Primitive="Area"/> </And> </Filter> </GeometryOverlaps> | |
| |
Description | Find a feature’s geometry that contains the geometry of another feature. For example, if feature B is within feature A – then feature A contains feature B. This filter is the inverse of GeometryIsWithin. |
Example | Find a feature that contains DEPARE, DRGARE, or UNSARE area features. |
<GeometryContains> <Filter> <And> <PrimitiveIsEqualTo Primitive="Area"/> <Or> <ObjectAcronymIsEqualTo Acronym="DEPARE"/> <ObjectAcronymIsEqualTo Acronym="DRGARE"/> <ObjectAcronymIsEqualTo Acronym="UNSARE"/> </Or> </And> </Filter> </GeometryContains> | |
| |
Description | Find if a feature crosses another feature. |
Example | Find features that cross DEPCNT features. |
<Filter> <GeometryCrosses> <Filter> <ObjectAcronymIsEqualTo Acronym="DEPCNT"/> </Filter> </GeometryCrosses> </Filter> | |
| |
Description | Find if the geometry of two features are identical. For example, feature A is identical to feature B. |
Example | Find features that share the same geometry as a SEAARE feature. |
<Filter> <GeometryEquals> <Filter> <ObjectAcronymIsEqualTo Acronym="SEAARE"/> </Filter> </GeometryEquals> </Filter> | |
| |
Description | Evaluate if the first feature is in a different location than the second feature. The features do not touch each other. |
Example | Find DEPCNT features that do not touch DEPARE features. |
<Filter> <ObjectAcronymIsEqualTo Acronym="DEPCNT"/> <GeometryIsDisjoint> <Filter> <ObjectAcronymIsEqualTo Acronym="DEPARE"/> </Filter> </GeometryIsDisjoint> </Filter> | |
| |
Description | Find features with geometry that intersects another feature. This operator is the opposite of |
Example | Find LNDARE features that intersect with another feature. |
<GeometryIntersects> <Filter> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> </Filter> </GeometryIntersects> | |
| |
Description | Find if an area feature is covered by one or more area features listed in the filter. The area cannot be covered by a single area but can extend over more than one area feature. Polygon D is covered by polygons A, B, and C |
Example | Find area features that are covered by LNDARE,BRIDGE,FLODOC,OFSPLF, or PONTON area features. |
<GeometryIsCoveredBy> <Filter> <And> <PrimitiveIsEqualTo Primitive="Area"/> <Or> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> <ObjectAcronymIsEqualTo Acronym="BRIDGE"/> <ObjectAcronymIsEqualTo Acronym="FLODOC"/> <ObjectAcronymIsEqualTo Acronym="OFSPLF"/> <ObjectAcronymIsEqualTo Acronym="PONTON"/> </Or> </And> </Filter> </GeometryIsCoveredBy> | |
| |
Description | Find if a feature covers one or more features listed in the filter. These can be: • Area features that cover area, line, point or sounding features. • Line features that cover line, point or sounding features. • Point/sounding features that cover (are equal to) point/sounding features. |
Example | Find an area feature that covers WATTUR or SOUNDG areas. |
<Filter> <GeometryCovers> <Filter> <Or> <ObjectAcronymIsEqualTo Acronym="WATTUR"/> <ObjectAcronymIsEqualTo Acronym="SOUNDG"/> </Or> </Filter> </GeometryCovers> </Filter> | |
| |
Description | Find if the feature shares at least one spatial feature with another feature. The operator inspects all representations that are sharing the spatial to see if the representation is used by the other feature being processed. The |
Attributes | • • • • The • • • • If |
Example 1 | Find features that share all edges with a LNDARE area feature. |
<GeometrySharesSpatial AllSpatials="True"> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> <PrimitiveIsEqualTo Primitive="Area"/> </And> </Filter> </GeometrySharesSpatial> | |
Example 2 | Find features that features share edges in the same direction as an LNDARE area feature. |
<GeometrySharesSpatial SameDirection="True"> <Filter> <And> <PrimitiveIsEqualTo Primitive="Area"/> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> </And> </Filter> </GeometrySharesSpatial> | |
Example 3 | Find an area feature that shares a spatial with a COALNE or SLCONS line but is NOT shared with a LNDARE area. |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Area"/> <GeometrySharesSpatial> <Filter> <And> <Or> <ObjectAcronymIsEqualTo Acronym="COALNE"/> <ObjectAcronymIsEqualTo Acronym="SLCONS"/> </Or> <PrimitiveIsEqualTo Primitive="Line"/> </And> <SpatialNotSharedWith> <Filter> <And> <ObjectAcronymIsEqualTo Acronym="LNDARE"/> <PrimitiveIsEqualTo Primitive="Area"/> </And> </Filter> </SpatialNotSharedWith> </Filter> </GeometrySharesSpatial> </And> </Filter> | |
| |
Description | Test if all vertices on a line are straight. This test is applied only to line features. This is not a filter tag; it is tested within a filter and does not contain a filter like other geometry tests. A tolerance attribute can be also applied to this test. The tolerance is the allowed distance between a completely straight line and a section of line with a deviation but might still be considered straight.
In the above example, the distance between A and B represents the gap between a normally straight line and a section of the line that is snapped to a node. If the tolerance is greater than the gap, no warning is displayed. If the tolerance is less than the distance, a warning is displayed. |
Attributes | • |
Example | Find a feature with a CATTRK attribute value of 1 with geometry that is NOT a straight line. |
<Filter> <And> <AttributeValueIsEqualTo Acronym="CATTRK" Value="1"/> <Not> <GeometryIsAStraightLine Tolerance="0"/> </Not> </And> </Filter> | |
| |
Description | Find if a master feature is located within a certain distance or tolerance of other slave features. This operator requires additional filters and it only works for point features. Points that share geometry with the feature being tested will be skipped. |
Attributes | – |
Example | Find a point feature that is located near a LIGHTS or TOPMAR point feature, but is not sharing the same geometry. |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Point" /> <PointsWithinTolerance> <Filter> <And> <PrimitiveIsEqualTo Primitive="Point" /> <Or> <ObjectAcronymIsEqualTo Acronym="LIGHTS" /> <ObjectAcronymIsEqualTo Acronym="TOPMAR" /> </Or> </And> </Filter> </PointsWithinTolerance> </And> </Filter> | |
CARIS Features | |
| |
Description | Find if the feature is on a theme number that is equal/not equal to theme number value. |
Attributes | • |
Example | Find a theme number that equals 100 |
<Filter> <ThemeNumberIsEqualTo ThemeNumber="100"/> </Filter> | |
| |
Description | Find a spot height that contains a symbol |
Attributes | – |
Example | Find a spot height with a symbol |
<Filter> <And> <PrimitiveIsEqualTo Primitive="SpotHeight"/> <SpotHeightHasSymbol/> </And> </Filter> | |
| |
Description | Find if the translated keyword value is equal to the given value. |
Attributes | • • |
Example | Find a feature where the feature compilation status is equal to 1. |
<Filter> <CARISKeywordIsEqualTo Keyword="CARIS_COMPILATION_STATUS" Value="1"/> </Filter> | |
| |
Description | Find if the feature has a case number that is equal to the given value. |
Attributes | • |
Example | Find line features with case number equal to 15. |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Line"/> <CaseNumberIsEqualTo Value="15"/> </And> </Filter> | |
| |
Description | Find if the feature is a display label. |
Attributes |
|
Example | Find features of primitive type Name that are display labels. |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Name"/> <IsDisplayLabel/> </And> </Filter> | |
DGN Features | |
| |
Description | Find if a DGN cell is equal/not equal to value. |
Attributes | • |
Example | Find DGN cell 4004. |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Symbol"/> <DGNCellNameIsEqualTo Value="4004"/> </And> </Filter> | |
| |
Description | Find if DGN colour number is equal/not equal to value. |
Attributes | • |
Example | Find DGN lines with colour number 7 |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Line"/> <DGNColourNumberIsEqualTo Value="7" /> </And> </Filter> | |
| |
Description | Find if a DGN line style is equal/not equal to value. |
Attributes | • Value= "DGN line style number" |
Example | Find DGN line style 1 |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Line"/> <DGNLineStyleIsEqualTo Value="1" /> </And> </Filter> | |
| |
Description | Find if DGN line weight is value. |
Attributes | • |
Example | Find DGN line weight 2 |
<Filter> <And> <PrimitiveIsEqualTo Primitive="Line"/> <DGNLineWeightIsEqualTo Value="2" /> </And> </Filter> | |