Revision 652 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/ShpStrategy.java

View differences:

ShpStrategy.java
13 13
import org.geotools.resources.geometry.XRectangle2D;
14 14

  
15 15
import com.hardcode.driverManager.DriverLoadException;
16
import com.hardcode.gdbms.engine.data.DriverException;
16
import com.iver.cit.gvsig.fmap.DriverException;
17 17
import com.iver.cit.gvsig.fmap.ViewPort;
18 18
import com.iver.cit.gvsig.fmap.core.FShape;
19 19
import com.iver.cit.gvsig.fmap.core.IGeometry;
......
49 49
	 * @see com.iver.cit.gvsig.fmap.operations.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, FStyle2D)
50 50
	 */
51 51
	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel)
52
			throws DriverIOException, DriverLoadException {
52
			throws DriverException {
53
		try{
53 54
		VectorialAdapter adapter = ((SingleLayer)getCapa()).getSource();
54 55
		BoundedShapes shapeBounds = (BoundedShapes) adapter.getDriver();
55 56
		VectorialFileDriver driver = (VectorialFileDriver) adapter.getDriver();
......
90 91
		///BitSet bitset=this.queryByPoint((QueriedPoint)new QueriedPoint(904561,4712059),200000);
91 92
		///BitSet bitset=this.queryByRect(new Rectangle2D.Double(304561,3712059,500000,500000));
92 93
		// BitSet bitset=this.queryByShape((IGeometry)new com.iver.cit.gvsig.fmap.core.Point2D(642561,4397059),1);
93
		try {
94 94
			// g.setTransform(viewPort.getAffineTransform());
95 95
			logger.debug("getCapa().getRecordset().start()");
96 96
			((AlphanumericData)getCapa()).getRecordset().start();
......
146 146
			}
147 147
			logger.debug("getCapa().getRecordset().stop()");
148 148
			((AlphanumericData)getCapa()).getRecordset().stop();
149
		} catch(IOException e) {
150
			throw new DriverIOException(e);
151
		} catch (DriverException e) {
152
			throw new DriverIOException(e);
153
		}
154 149

  
155 150
		
156 151
		long t2 = System.currentTimeMillis();
......
158 153
		adapter.stop();
159 154
		
160 155
		System.out.println(t2 - t1);
156
	}catch(DriverIOException e){
157
		throw new DriverException(e);
158
	} catch (com.hardcode.gdbms.engine.data.DriverException e) {
159
		throw new DriverException(e);
160
	} catch (DriverException e) {
161
		throw new DriverException(e);
162
	} catch (IOException e) {
163
		throw new DriverException(e);
161 164
	}
162
	public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverIOException, DriverLoadException, DriverException {
165
	}
166
	public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverException {
163 167
		super.draw(null, g, viewPort, cancel);  // Quiero ejecutar el draw del padre, que es el que va sin acelaraci?n!!
164 168
		
165 169
	}

Also available in: Unified diff