Class SpatialOperation

    • Field Detail

      • Contains

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

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

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

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

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

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

      • SpatialOperation

        protected SpatialOperation​(String name)
    • Method Detail

      • register

        protected void register​(String name)
      • evaluate

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

        public String getName()