Class JudgementBase<U extends org.locationtech.jts.geom.Geometry>

java.lang.Object
org.apache.sedona.core.rangeJudgement.JudgementBase<U>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RangeFilter, RangeFilterUsingIndex

public class JudgementBase<U extends org.locationtech.jts.geom.Geometry> extends Object implements Serializable
See Also:
  • Constructor Details

    • JudgementBase

      public JudgementBase(U queryWindow, SpatialPredicate spatialPredicate)
      Instantiates a new range filter using index.
      Parameters:
      queryWindow - the query window
      spatialPredicate - spatial predicate in query criteria geom <spatialPredicate> queryWindow
    • JudgementBase

      public JudgementBase(U queryWindow, boolean considerBoundaryIntersection, boolean leftCoveredByRight)
      Instantiates a new range filter using index.
      Parameters:
      queryWindow - the query window
      considerBoundaryIntersection - the consider boundary intersection
      leftCoveredByRight - query window covered by geometry, or query window covers geometry. only effective when considerBoundaryIntersection was false
  • Method Details

    • match

      public boolean match(org.locationtech.jts.geom.Geometry spatialObject, org.locationtech.jts.geom.Geometry queryWindow)
    • resolveSpatialPredicate

      public static SpatialPredicate resolveSpatialPredicate(boolean considerBoundaryIntersection, boolean leftCoveredByRight)