Class SpatialPredicate

    • Field Detail

      • registry

        private static final java.util.Map<java.lang.String,​SpatialPredicate> registry
      • Contains

        public static final SpatialPredicate Contains
        Meets the "Covers" OGC definition (boundary-neutral).
      • Intersects

        public static final SpatialPredicate Intersects
        Meets the "Intersects" OGC definition.
      • IsEqualTo

        public static final SpatialPredicate IsEqualTo
        Meets the "Equals" OGC definition.
      • IsDisjointTo

        public static final SpatialPredicate IsDisjointTo
        Meets the "Disjoint" OGC definition.
      • IsWithin

        public static final SpatialPredicate IsWithin
        Meets the "CoveredBy" OGC definition (boundary-neutral).
      • Overlaps

        public static final SpatialPredicate Overlaps
        Almost meets the "Overlaps" OGC definition, but boundary-neutral (boundary==interior).
      • name

        private final java.lang.String name
    • Constructor Detail

      • SpatialPredicate

        protected SpatialPredicate​(java.lang.String name)
    • Method Detail

      • register

        protected void register​(java.lang.String name)
      • evaluate

        public abstract boolean evaluate​(Shape indexedShape,
                                         Shape queryShape)
        Returns whether the relationship between indexedShape and queryShape is satisfied by this operation.
      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object