Revision 2396 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrRaster.java

View differences:

FLyrRaster.java
48 48
import java.awt.geom.NoninvertibleTransformException;
49 49
import java.awt.geom.Rectangle2D;
50 50
import java.awt.image.BufferedImage;
51
import java.awt.image.DataBuffer;
51 52
import java.io.File;
52 53
import java.lang.reflect.Constructor;
53 54
import java.lang.reflect.InvocationTargetException;
......
235 236
		return ((RasterFileAdapter) source).getPixel(wcx, wcy);
236 237
	}
237 238
	
239
	public double getMaxX(){
240
		try {
241
			return this.getFullExtent().getMaxX();
242
		}catch(DriverException e){
243
			return 0D;
244
		}
245
	}
246
	
247
	public double getMaxY(){
248
		try {
249
			return this.getFullExtent().getMaxY();
250
		}catch(DriverException e){
251
			return 0D;
252
		}
253
	}
254
	
255
	public double getMinX(){
256
		try {
257
			return this.getFullExtent().getMinX();
258
		}catch(DriverException e){
259
			return 0D;
260
		}
261
	}
262
	
263
	public double getMinY(){
264
		try {
265
			return this.getFullExtent().getMinY();
266
		}catch(DriverException e){
267
			return 0D;
268
		}
269
	}
270
	
271
	public double getHeight(){
272
		try {
273
			return this.getFullExtent().getHeight();
274
		}catch(DriverException e){
275
			return 0D;
276
		}
277
	}
278
	
279
	public double getWidth(){
280
		try {
281
			return this.getFullExtent().getWidth();
282
		}catch(DriverException e){
283
			return 0D;
284
		}
285
	}
286

  
287
	
238 288
	/* (non-Javadoc)
239 289
	 * @see com.iver.cit.gvsig.fmap.layers.layerOperations.InfoByPoint#queryByPoint(java.awt.Point)
240 290
	 */
......
264 314
	}
265 315

  
266 316
	/**
317
	 * Obtiene atributos a partir de un georasterfile
318
	 * @return
319
	 */
320
	public ArrayList getAttributes() {
321
		return source.getAttributes();
322
	}
323
	
324
	/**
267 325
	 * @throws XMLException
268 326
	 * @see com.iver.cit.gvsig.fmap.layers.FLayer#getProperties()
269 327
	 */
......
447 505
		        		// vp.setMat(mat);
448 506
		        		// rasterList.draw(g2, vp);
449 507
		        				        		
450
		        		System.out.println("FLyrRaster.print(): fila "+stepX+" de "
508
		        		/*System.out.println("FLyrRaster.print(): fila "+stepX+" de "
451 509
		        		        + numW + " , col "+stepY+" de " + numH + 
452 510
		        		        "\n, Extent = "+vp.getExtent() + " imageSize: "
453
		        		        + tam);
511
		        		        + tam);*/
454 512
		        		draw(null, g, vp, cancel);
455 513
						
456 514
					} catch (NoninvertibleTransformException e) {

Also available in: Unified diff