Class JtsSpatialAlgebra

java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.function.geosparql.JtsSpatialAlgebra
All Implemented Interfaces:
SpatialAlgebra

public class JtsSpatialAlgebra extends Object implements SpatialAlgebra
JTS-enabled implementation of spatial algebra, with full support for polygon-related geospatial functions
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    JtsSpatialAlgebra(org.locationtech.spatial4j.context.jts.JtsSpatialContext context)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    org.locationtech.spatial4j.shape.Shape
    boundary(org.locationtech.spatial4j.shape.Shape s)
     
    org.locationtech.spatial4j.shape.Shape
    buffer(org.locationtech.spatial4j.shape.Shape s, double distance)
     
    org.locationtech.spatial4j.shape.Shape
    convexHull(org.locationtech.spatial4j.shape.Shape s)
     
    org.locationtech.spatial4j.shape.Shape
    difference(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehContains(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehCoveredBy(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehCovers(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehDisjoint(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehEquals(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehInside(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehMeet(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    ehOverlap(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    org.locationtech.spatial4j.shape.Shape
    envelope(org.locationtech.spatial4j.shape.Shape s)
     
    org.locationtech.spatial4j.shape.Shape
    intersection(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8dc(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8ec(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8eq(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8ntpp(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8ntppi(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8po(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8tpp(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    rcc8tppi(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    relate(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2, String intersectionPattern)
     
    boolean
    sfContains(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfCrosses(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfDisjoint(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfEquals(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfIntersects(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfOverlaps(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfTouches(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    boolean
    sfWithin(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    org.locationtech.spatial4j.shape.Shape
    symDifference(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     
    org.locationtech.spatial4j.shape.Shape
    union(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
     

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • JtsSpatialAlgebra Link icon

      public JtsSpatialAlgebra(org.locationtech.spatial4j.context.jts.JtsSpatialContext context)
  • Method Details Link icon

    • buffer Link icon

      public org.locationtech.spatial4j.shape.Shape buffer(org.locationtech.spatial4j.shape.Shape s, double distance)
      Specified by:
      buffer in interface SpatialAlgebra
    • convexHull Link icon

      public org.locationtech.spatial4j.shape.Shape convexHull(org.locationtech.spatial4j.shape.Shape s)
      Specified by:
      convexHull in interface SpatialAlgebra
    • boundary Link icon

      public org.locationtech.spatial4j.shape.Shape boundary(org.locationtech.spatial4j.shape.Shape s)
      Specified by:
      boundary in interface SpatialAlgebra
    • envelope Link icon

      public org.locationtech.spatial4j.shape.Shape envelope(org.locationtech.spatial4j.shape.Shape s)
      Specified by:
      envelope in interface SpatialAlgebra
    • union Link icon

      public org.locationtech.spatial4j.shape.Shape union(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      union in interface SpatialAlgebra
    • intersection Link icon

      public org.locationtech.spatial4j.shape.Shape intersection(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      intersection in interface SpatialAlgebra
    • symDifference Link icon

      public org.locationtech.spatial4j.shape.Shape symDifference(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      symDifference in interface SpatialAlgebra
    • difference Link icon

      public org.locationtech.spatial4j.shape.Shape difference(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      difference in interface SpatialAlgebra
    • relate Link icon

      public boolean relate(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2, String intersectionPattern)
      Specified by:
      relate in interface SpatialAlgebra
    • sfEquals Link icon

      public boolean sfEquals(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfEquals in interface SpatialAlgebra
    • sfDisjoint Link icon

      public boolean sfDisjoint(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfDisjoint in interface SpatialAlgebra
    • sfIntersects Link icon

      public boolean sfIntersects(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfIntersects in interface SpatialAlgebra
    • sfTouches Link icon

      public boolean sfTouches(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfTouches in interface SpatialAlgebra
    • sfCrosses Link icon

      public boolean sfCrosses(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfCrosses in interface SpatialAlgebra
    • sfWithin Link icon

      public boolean sfWithin(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfWithin in interface SpatialAlgebra
    • sfContains Link icon

      public boolean sfContains(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfContains in interface SpatialAlgebra
    • sfOverlaps Link icon

      public boolean sfOverlaps(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      sfOverlaps in interface SpatialAlgebra
    • ehEquals Link icon

      public boolean ehEquals(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehEquals in interface SpatialAlgebra
    • ehDisjoint Link icon

      public boolean ehDisjoint(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehDisjoint in interface SpatialAlgebra
    • ehMeet Link icon

      public boolean ehMeet(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehMeet in interface SpatialAlgebra
    • ehOverlap Link icon

      public boolean ehOverlap(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehOverlap in interface SpatialAlgebra
    • ehCovers Link icon

      public boolean ehCovers(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehCovers in interface SpatialAlgebra
    • ehCoveredBy Link icon

      public boolean ehCoveredBy(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehCoveredBy in interface SpatialAlgebra
    • ehInside Link icon

      public boolean ehInside(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehInside in interface SpatialAlgebra
    • ehContains Link icon

      public boolean ehContains(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      ehContains in interface SpatialAlgebra
    • rcc8dc Link icon

      public boolean rcc8dc(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8dc in interface SpatialAlgebra
    • rcc8ec Link icon

      public boolean rcc8ec(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8ec in interface SpatialAlgebra
    • rcc8po Link icon

      public boolean rcc8po(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8po in interface SpatialAlgebra
    • rcc8tppi Link icon

      public boolean rcc8tppi(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8tppi in interface SpatialAlgebra
    • rcc8tpp Link icon

      public boolean rcc8tpp(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8tpp in interface SpatialAlgebra
    • rcc8ntpp Link icon

      public boolean rcc8ntpp(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8ntpp in interface SpatialAlgebra
    • rcc8ntppi Link icon

      public boolean rcc8ntppi(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8ntppi in interface SpatialAlgebra
    • rcc8eq Link icon

      public boolean rcc8eq(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
      Specified by:
      rcc8eq in interface SpatialAlgebra