spatial
Class SelectQuery
java.lang.Object
|
+--spatial.BasicSpatialQuery
|
+--spatial.SelectQuery
- All Implemented Interfaces:
- SpatialQuery
- public class SelectQuery
- extends BasicSpatialQuery
Class offering the operations required for a selection query performed by a spatial search tree.
|
Constructor Summary |
SelectQuery(int scale)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectQuery
public SelectQuery(int scale)
- Constructor.
- Parameters:
scale - the scale
conditionFulfilled
public boolean conditionFulfilled(MBR rect,
MBR entryMBR)
- Tests whether the minimum coordinates of the query rectangle is contained by the MBR of a non-leaf entry intersect.
The tolerance attribute is considered.
- Specified by:
conditionFulfilled in interface SpatialQuery- Overrides:
conditionFulfilled in class BasicSpatialQuery
- Parameters:
rect - the query rectangleentryMBR - the minimum bounding rectangle of non-leaf entry
- Returns:
- true if the condition is fulfilled
conditionFulfilled
public boolean conditionFulfilled(MBR rect,
SpatialSearchTreeEntry entry)
- Tests whether the minimum coordinate of the query rectangle and the MBR of an leaf entry interact.
The tolerance attribute is considered.
- Specified by:
conditionFulfilled in interface SpatialQuery- Overrides:
conditionFulfilled in class BasicSpatialQuery
- Parameters:
rect - the query rectangleentry - the entry of a leaf entry
- Returns:
- true if the condition is fulfilled
conditionFulfilled
public boolean conditionFulfilled(MBR rect,
SpatialSearchTreeObject obj)
- Tests whether the query rectangle and the object interact.
The scale attribute is considered.
- Specified by:
conditionFulfilled in interface SpatialQuery- Overrides:
conditionFulfilled in class BasicSpatialQuery
- Parameters:
rect - the query rectangleobj - the object
- Returns:
- true if the condition fulfilled