Class SpatialFilter

  • All Implemented Interfaces:
    Serializable, Criterion

    public class SpatialFilter
    extends Object
    implements Criterion
    A Criterion constraining a geometry property to have a bounding box that overlaps with a specified bounding box.
    See Also:
    Serialized Form
    • Constructor Detail

      • SpatialFilter

        public SpatialFilter​(String propertyName,
                             org.locationtech.jts.geom.Geometry filter)
        Constructs an instance with the specified property and the bounding box of the specified geometry.
        Parameters:
        propertyName - The name of the propety being constrained
        filter - The geometry whose bounding box is used as search geometry
      • SpatialFilter

        public SpatialFilter​(String propertyName,
                             org.locationtech.jts.geom.Envelope envelope,
                             int srid)
        Constructs an instance with the specified property and the bounding box of the specified geometry.
        Parameters:
        propertyName - The name of the propety being constrained
        envelope - The bounding box is used as search geometry
        srid - The SRID of the specified bounding box