Revision 929 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/DefaultStrategy.java

View differences:

DefaultStrategy.java
52 52
	public BitSet queryByRect(Rectangle2D rect) throws DriverException {
53 53
		QueryByRectVisitor visitor = new QueryByRectVisitor();
54 54
		visitor.setRect(rect);
55
		process(visitor);
55
		try{
56
			process(visitor);
57
		} catch (VisitException e) {
58
			throw new RuntimeException("QueryByRectVisitor lanza una VisitException?");
59
		}
56 60

  
57 61
		return visitor.getBitSet();
58 62
	}
......
71 75
	 * 		int)
72 76
	 */
73 77
	public BitSet queryByShape(IGeometry g, int relationship)
74
		throws DriverException {
78
		throws DriverException, VisitException {
75 79
		QueryByShapeVisitor visitor = new QueryByShapeVisitor();
76 80
		visitor.setRelationShip(relationship);
77 81
		visitor.setShape(g);
......
187 191
	 * 		com.iver.cit.gvsig.fmap.operations.selection.VectorialSubSet)
188 192
	 */
189 193
	public void process(FeatureVisitor visitor, BitSet subset)
190
		throws DriverException {
194
		throws DriverException, VisitException {
191 195
		try{
192 196
		logger.debug("visitor.start()");
193 197

  
......
209 213
	}
210 214

  
211 215
	/**
216
	 * @throws VisitException
212 217
	 * @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#process(com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor)
213 218
	 */
214
	public void process(FeatureVisitor visitor) throws DriverException {
219
	public void process(FeatureVisitor visitor) throws DriverException, VisitException {
215 220
		try{
216 221
		logger.debug("visitor.start()");
217 222

  
......
227 232
		}
228 233
		}catch(DriverIOException e){
229 234
			throw new DriverException(e);
230
		}
235
		} 
231 236
	}
232 237

  
233 238
	/**
......
240 245
		visitor.setLayer(capa);
241 246
		visitor.setTolerance(tolerance);
242 247
		visitor.setQueriedPoint(p);
243
		process(visitor);
248
		try {
249
			process(visitor);
250
		} catch (VisitException e) {
251
			throw new RuntimeException("QueryByPointVisitor lanza una VisitException?");
252
		}
244 253

  
245 254
		return visitor.getBitSet();
246 255
	}

Also available in: Unified diff