Class SpatialRelationOp

java.lang.Object
org.openjump.core.attributeoperations.SpatialRelationOp

public class SpatialRelationOp extends Object
Contains methods to extract sets of features which fullfill some spatial criterion.

notes:

  • use "intersects" only for polygon geometries (condition intersection area > 0)
  • "contains" can be used for polygons and points (centroid from polygon is calculated)
Author:
sstein
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List
    evaluateSpatial(int spatialRelation, org.locationtech.jts.index.quadtree.Quadtree featureTree, org.locationtech.jts.geom.Geometry g, double radius)
    note: if input feature is point and spatial attribute is "intersect" or "covered by" the candidate features are selected from a 10.0m radius
    static String
    getName(int spatialRel)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SpatialRelationOp

      public SpatialRelationOp()
  • Method Details

    • getName

      public static String getName(int spatialRel)
    • evaluateSpatial

      public static List evaluateSpatial(int spatialRelation, org.locationtech.jts.index.quadtree.Quadtree featureTree, org.locationtech.jts.geom.Geometry g, double radius)
      note: if input feature is point and spatial attribute is "intersect" or "covered by" the candidate features are selected from a 10.0m radius
      Parameters:
      spatialRelation - spatial relation
      featureTree - feature index as a Quadtree
      g - a Geometry
      radius - a searching radius
      Returns:
      ArrayList of Feature fullfilling the spatial criterion