Revision 5312 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/operations/strategies/WFSStrategy.java
WFSStrategy.java | ||
---|---|---|
59 | 59 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
60 | 60 |
import com.iver.cit.gvsig.fmap.layers.VectorialAdapter; |
61 | 61 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
62 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Selectable; |
|
62 | 63 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.SingleLayer; |
63 | 64 |
import com.iver.cit.gvsig.fmap.operations.Cancellable; |
64 | 65 |
import com.iver.cit.gvsig.fmap.rendering.VectorialLegend; |
... | ... | |
78 | 79 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.operations.Cancellable) |
79 | 80 |
*/ |
80 | 81 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverException { |
81 |
// Nos aprovechamos del SQL para lanzar la consulta |
|
82 |
// teniendo en cuenta el boundingbox que toca. |
|
83 |
com.iver.cit.gvsig.gui.View activeView = |
|
84 |
(com.iver.cit.gvsig.gui.View) PluginServices.getMDIManager().getActiveView(); |
|
82 |
// // Nos aprovechamos del SQL para lanzar la consulta
|
|
83 |
// // teniendo en cuenta el boundingbox que toca.
|
|
84 |
// com.iver.cit.gvsig.gui.View activeView =
|
|
85 |
// (com.iver.cit.gvsig.gui.View) PluginServices.getMDIManager().getActiveView();
|
|
85 | 86 |
|
86 | 87 |
FLayer capa = getCapa(); |
87 | 88 |
ICoordTrans ct = getCapa().getCoordTrans(); |
... | ... | |
97 | 98 |
wfsDriver.open(); |
98 | 99 |
|
99 | 100 |
FLyrVect flryVect = (FLyrVect)getCapa(); |
100 |
FBitSet bitSet = flryVect.queryByRect(activeView.getMapControl().getViewPort().getExtent()); |
|
101 |
Selectable selectable = flryVect.getRecordset(); |
|
102 |
FBitSet bitSet = selectable.getSelection(); |
|
101 | 103 |
|
102 | 104 |
String strEPSG = viewPort.getProjection().getAbrev().substring(5); |
103 | 105 |
IFeatureIterator geomIt=null; |
Also available in: Unified diff