Revision 610
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/ShpStrategy.java | ||
---|---|---|
10 | 10 |
import java.io.IOException; |
11 | 11 |
|
12 | 12 |
import org.apache.log4j.Logger; |
13 |
import org.geotools.resources.geometry.XRectangle2D; |
|
13 | 14 |
|
14 | 15 |
import com.hardcode.driverManager.DriverLoadException; |
15 | 16 |
import com.hardcode.gdbms.engine.data.DriverException; |
... | ... | |
98 | 99 |
if (cancel.isCanceled()) break; |
99 | 100 |
|
100 | 101 |
bounds = shapeBounds.getShapeBounds(i); |
101 |
if (extent.intersects(bounds))
|
|
102 |
if (XRectangle2D.intersectInclusive(extent, bounds))
|
|
102 | 103 |
{ |
103 | 104 |
// Prueba query |
104 | 105 |
/* if (bitset.get(i)){ |
... | ... | |
110 | 111 |
FSymbol symbol = l.getSymbol(i); // Cambiar esto |
111 | 112 |
boolean bPoint = (shapeBounds.getShapeType(i) == FShape.POINT); |
112 | 113 |
if (bPoint || ((bounds.getHeight() > viewPort.getDist1pixel()) || |
113 |
(bounds.getWidth() > viewPort.getDist1pixel()))) |
|
114 |
(bounds.getWidth() > viewPort.getDist1pixel())))
|
|
114 | 115 |
{ |
115 | 116 |
geom = driver.getShape(i); |
116 | 117 |
if (((Selectable)getCapa()).isSelected(i)){ |
Also available in: Unified diff