org.openjump.core.attributeoperations
Class SpatialRelationOp

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

public class SpatialRelationOp
extends java.lang.Object

contains some method 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
static int CONTAINS
           
static int COVEREDBY
           
static int INTERSECTS
           
 
Constructor Summary
SpatialRelationOp()
           
 
Method Summary
static java.util.List evaluateSpatial(int spatialRelation, com.vividsolutions.jts.index.quadtree.Quadtree featureTree, com.vividsolutions.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 java.lang.String getName(int spatialRel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values

INTERSECTS

public static final int INTERSECTS
See Also:
Constant Field Values

COVEREDBY

public static final int COVEREDBY
See Also:
Constant Field Values
Constructor Detail

SpatialRelationOp

public SpatialRelationOp()
Method Detail

getName

public static java.lang.String getName(int spatialRel)

evaluateSpatial

public static java.util.List evaluateSpatial(int spatialRelation,
                                             com.vividsolutions.jts.index.quadtree.Quadtree featureTree,
                                             com.vividsolutions.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 -
featureTree -
g -
radius -
Returns:
ArrayList of Feature fullfilling the spatial criterion