|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.io.quadtree.DBQuadtree
public class DBQuadtree
Constructor Summary | |
---|---|
DBQuadtree(int id,
String indexName,
JDBCConnection jdbc)
initializes a quadtree already existing in a database |
|
DBQuadtree(int id,
String indexName,
JDBCConnection jdbc,
double accuracyX,
double accuracyY)
initializes a quadtree already existing in a database |
Method Summary | |
---|---|
(package private) void |
addToCache(Node node)
|
void |
deleteItem(Object item)
deletes a specific item from the tree (not the item itself will be deleted, just its reference will be) |
void |
deleteRange(Envelope envelope)
deletes all references of items whose envelope intersects with the passed one ( |
int |
getDepth()
|
(package private) Node |
getFromCache(String id)
|
Envelope |
getRootBoundingBox()
returns the bounding box covered by the quadtrees root node |
void |
insert(Object item,
Envelope envelope)
inserts a new item into the quadtree |
void |
insert(Object item,
Point point)
inserts a new item into the quadtree |
List<Object> |
query(Envelope envelope)
returns a List containing all items whose envelope intersects with the passed one |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBQuadtree(int id, String indexName, JDBCConnection jdbc) throws IndexException
id
- indexName
- this name will be used to create the table
that stores the nodes of a specific quadtreejdbc
- description of database connection
IndexException
public DBQuadtree(int id, String indexName, JDBCConnection jdbc, double accuracyX, double accuracyY) throws IndexException
id
- indexName
- this name will be used to create the table
that stores the nodes of a specific quadtreejdbc
- description of database connectionaccuracyX
- accuracyY
-
IndexException
Method Detail |
---|
Node getFromCache(String id)
id
-
void addToCache(Node node)
node
- public void insert(Object item, Envelope envelope) throws IndexException
Quadtree
insert
in interface Quadtree
IndexException
public void insert(Object item, Point point) throws IndexException
Quadtree
insert
in interface Quadtree
item
- point
-
IndexException
public List<Object> query(Envelope envelope) throws IndexException
Quadtree
query
in interface Quadtree
IndexException
public void deleteItem(Object item)
Quadtree
deleteItem
in interface Quadtree
public void deleteRange(Envelope envelope)
Quadtree
deleteRange
in interface Quadtree
)
public int getDepth()
getDepth
in interface Quadtree
public Envelope getRootBoundingBox() throws IndexException
Quadtree
getRootBoundingBox
in interface Quadtree
IndexException
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net