Revision 235 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/DefaultStrategy.java
DefaultStrategy.java | ||
---|---|---|
36 | 36 |
/** |
37 | 37 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByRect(java.awt.geom.Rectangle2D) |
38 | 38 |
*/ |
39 |
public BitSet queryByRect(Rectangle2D rect) { |
|
40 |
return null; |
|
39 |
public BitSet queryByRect(Rectangle2D rect) throws DriverIOException{ |
|
40 |
|
|
41 |
QueryByRectVisitor visitor=new QueryByRectVisitor(); |
|
42 |
visitor.setRect(rect); |
|
43 |
process(visitor); |
|
44 |
return visitor.getBitSet(); |
|
41 | 45 |
} |
42 | 46 |
|
43 | 47 |
/** |
48 |
* @throws DriverIOException |
|
44 | 49 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByShape(com.iver.cit.gvsig.fmap.fshape.FGeometry, |
45 | 50 |
* int) |
46 | 51 |
*/ |
47 |
public BitSet queryByShape(FGeometry g, int relationship) { |
|
48 |
return null; |
|
52 |
public BitSet queryByShape(FGeometry g, int relationship) throws DriverIOException { |
|
53 |
QueryByShapeVisitor visitor=new QueryByShapeVisitor(); |
|
54 |
visitor.setRelationShip(relationship); |
|
55 |
visitor.setShape(g); |
|
56 |
process(visitor); |
|
57 |
return visitor.getBitSet(); |
|
49 | 58 |
} |
50 | 59 |
|
51 | 60 |
/** |
... | ... | |
150 | 159 |
QueryByPointVisitor visitor=new QueryByPointVisitor(); |
151 | 160 |
visitor.setLayer(capa); |
152 | 161 |
visitor.setTolerance(tolerance); |
153 |
visitor.setPoint(p); |
|
162 |
visitor.setQueriedPoint(p);
|
|
154 | 163 |
process(visitor); |
155 | 164 |
return visitor.getBitSet(); |
156 | 165 |
} |
Also available in: Unified diff