- All Implemented Interfaces:
Serializable
,Comparable<SpatialOperatorName>
,ControlledVocabulary
@UML(identifier="SpatialOperatorName",
specification=ISO_19143)
public final class SpatialOperatorName
extends CodeList<SpatialOperatorName>
Nature of the spatial operation between two geometries.
- Since:
- 3.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpatialOperatorName
Operator evaluates totrue
when the bounding box of the feature's geometry interacts with the bounding box provided in the filter properties.static final SpatialOperatorName
Operator evaluates totrue
if the first geometric operand contains the second.static final SpatialOperatorName
Operator evaluates totrue
if the first geometric operand crosses the second.static final SpatialOperatorName
Operator evaluates totrue
if the first operand is disjoint from the second.static final SpatialOperatorName
Operator evaluates totrue
if the geometry of the two operands are equal.static final SpatialOperatorName
Operator evaluates totrue
if the two geometric operands intersect.static final SpatialOperatorName
Operator evaluates totrue
if the interior of the first geometric operand somewhere overlaps the interior of the second geometric operand.static final SpatialOperatorName
Operator evaluates totrue
if the two geometric operands touch, but do not overlap.static final SpatialOperatorName
Operator evaluates totrue
if the first geometric operand is completely contained by the constant geometric operand. -
Method Summary
Modifier and TypeMethodDescriptionfamily()
Returns the list of codes of the same kind as this code list element.static SpatialOperatorName
Returns the spatial operator that matches the given string, or returns a new one if none match it.static SpatialOperatorName[]
values()
Returns the list ofSpatialOperatorName
s.Methods inherited from class org.opengis.util.CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.util.ControlledVocabulary
names
-
Field Details
-
BBOX
@UML(identifier="BBOX", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName BBOXOperator evaluates totrue
when the bounding box of the feature's geometry interacts with the bounding box provided in the filter properties. The geometry is given by the first expression and the bounding box is the envelope given by the second expression.The
BBOX
operation is defined as a convenient and more compact way of expressing the very common bounding box constraint based on the envelope geometry. It is equivalent to the spatial operationNOT DISJOINT
meaning that theBBOX
operator identifies all geometries that spatially interact with the box.An implementation may choose to throw an exception if one attempts to test features that are in a different SRS than the SRS contained in the filter.
-
EQUALS
@UML(identifier="Equals", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName EQUALSOperator evaluates totrue
if the geometry of the two operands are equal. -
DISJOINT
@UML(identifier="Disjoint", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName DISJOINTOperator evaluates totrue
if the first operand is disjoint from the second. "Disjoint" shall be interpreted in the sense defined in the OGC Simple Features specification. -
INTERSECTS
@UML(identifier="Intersects", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName INTERSECTSOperator evaluates totrue
if the two geometric operands intersect. -
TOUCHES
@UML(identifier="Touches", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName TOUCHESOperator evaluates totrue
if the two geometric operands touch, but do not overlap. -
CROSSES
@UML(identifier="Crosses", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName CROSSESOperator evaluates totrue
if the first geometric operand crosses the second. "Cross" shall be interpreted in the sense defined by the OGC Simple Features specification. -
WITHIN
@UML(identifier="Within", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName WITHINOperator evaluates totrue
if the first geometric operand is completely contained by the constant geometric operand. -
CONTAINS
@UML(identifier="Contains", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName CONTAINSOperator evaluates totrue
if the first geometric operand contains the second. -
OVERLAPS
@UML(identifier="Overlaps", obligation=CONDITIONAL, specification=ISO_19143) public static final SpatialOperatorName OVERLAPSOperator evaluates totrue
if the interior of the first geometric operand somewhere overlaps the interior of the second geometric operand.
-
-
Method Details
-
values
Returns the list ofSpatialOperatorName
s.- Returns:
- the list of codes declared in the current JVM.
-
family
Returns the list of codes of the same kind as this code list element. Invoking this method is equivalent to invokingvalues()
, except that this method can be invoked on an instance of the parentCodeList
class.- Specified by:
family
in interfaceControlledVocabulary
- Specified by:
family
in classCodeList<SpatialOperatorName>
- Returns:
- all code values for this code list.
-
valueOf
Returns the spatial operator that matches the given string, or returns a new one if none match it. This methods returns the first instance (in declaration order) for which the name is equals, ignoring case, to the given name. If no existing instance is found, then a new one is created for the given name.- Parameters:
code
- the name of the code to fetch or to create.- Returns:
- a code matching the given name.
-