Class SpatialRelationOp
java.lang.Object
org.openjump.core.attributeoperations.SpatialRelationOp
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListevaluateSpatial(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 radiusstatic StringgetName(int spatialRel)
-
Field Details
-
CONTAINS
public static final int CONTAINS- See Also:
-
INTERSECTS
public static final int INTERSECTS- See Also:
-
COVEREDBY
public static final int COVEREDBY- See Also:
-
-
Constructor Details
-
SpatialRelationOp
public SpatialRelationOp()
-
-
Method Details
-
getName
-
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 relationfeatureTree- feature index as a Quadtreeg- a Geometryradius- a searching radius- Returns:
- ArrayList of Feature fullfilling the spatial criterion
-