Revision 11288 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/spatialindex/QuadtreeJts.java
QuadtreeJts.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.1 2006-05-01 18:38:41 azabala |
|
48 |
* Revision 1.2 2007-04-19 17:32:50 azabala |
|
49 |
* new constructor (fmap spatial index from an existing jts spatial index) |
|
50 |
* |
|
51 |
* Revision 1.1 2006/05/01 18:38:41 azabala |
|
49 | 52 |
* primera version en cvs del api de indices espaciales |
50 | 53 |
* |
51 | 54 |
* |
... | ... | |
66 | 69 |
* |
67 | 70 |
*/ |
68 | 71 |
public class QuadtreeJts implements ISpatialIndex { |
69 |
private Quadtree quadtree = new Quadtree(); |
|
72 |
private Quadtree quadtree; |
|
73 |
|
|
74 |
public QuadtreeJts(){ |
|
75 |
quadtree = new Quadtree(); |
|
76 |
} |
|
77 |
|
|
78 |
public QuadtreeJts(Quadtree jtsidx){ |
|
79 |
quadtree = jtsidx; |
|
80 |
} |
|
70 | 81 |
|
71 | 82 |
public List query(Rectangle2D rect) { |
72 | 83 |
return quadtree.query(fromRect(rect)); |
Also available in: Unified diff