Revision 305 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/DefaultStrategy.java
DefaultStrategy.java | ||
---|---|---|
8 | 8 |
import java.util.BitSet; |
9 | 9 |
|
10 | 10 |
import com.iver.cit.gvsig.fmap.ViewPort; |
11 |
import com.iver.cit.gvsig.fmap.core.FGeometry;
|
|
11 |
import com.iver.cit.gvsig.fmap.core.IGeometry;
|
|
12 | 12 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
13 | 13 |
import com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver; |
14 | 14 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
... | ... | |
48 | 48 |
|
49 | 49 |
/** |
50 | 50 |
* @throws DriverIOException |
51 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByShape(com.iver.cit.gvsig.fmap.fshape.FGeometry,
|
|
51 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByShape(com.iver.cit.gvsig.fmap.fshape.IGeometry,
|
|
52 | 52 |
* int) |
53 | 53 |
*/ |
54 |
public BitSet queryByShape(FGeometry g, int relationship) throws DriverIOException {
|
|
54 |
public BitSet queryByShape(IGeometry g, int relationship) throws DriverIOException {
|
|
55 | 55 |
QueryByShapeVisitor visitor=new QueryByShapeVisitor(); |
56 | 56 |
visitor.setRelationShip(relationship); |
57 | 57 |
visitor.setShape(g); |
... | ... | |
100 | 100 |
|
101 | 101 |
for (int i = 0; i < sc; i++) { |
102 | 102 |
if (cancel.isCanceled()) break; |
103 |
FGeometry geom = adapter.getShape(i);
|
|
103 |
IGeometry geom = adapter.getShape(i);
|
|
104 | 104 |
Legend l = capa.getLegend(); |
105 | 105 |
|
106 | 106 |
if (geom.intersects(extent)) { |
Also available in: Unified diff