org.openjump.core.attributeoperations
Class SpatialRelationOp
java.lang.Object
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
|
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 |
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
SpatialRelationOp
public SpatialRelationOp()
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