Revision 4170 branches/v05/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/FLyrWMS.java

View differences:

FLyrWMS.java
410 410
			throw new DriverException(PluginServices.getText(this, "connect_error"), e);
411 411
		} catch (NoninvertibleTransformException e) {
412 412
			NotificationManager.addError("NotinvertibleTransform", e);
413
			//e.printStackTrace();
414 413
		}
415 414
		return null;
416 415
	}
......
457 456
				}
458 457
			}
459 458
		}
459
		Runtime r = Runtime.getRuntime();
460
		long mem = r.totalMemory() - r.freeMemory();
461
		System.err.println("Memoria total: " + (mem / 1024) +"KB");
460 462
	}
461 463
	
462 464
	private void drawFixedSize(Graphics2D g, ViewPort vp, Cancellable cancel) throws DriverException {
......
465 467
		
466 468
		try {			
467 469
			wmsStatus.setExtent( bBox );
468
			wmsStatus.setFormat(m_Format);
470
			wmsStatus.setFormat( m_Format );
469 471
			wmsStatus.setHeight( fixedSize.height );
470 472
			wmsStatus.setWidth( fixedSize.width );
471 473
			wmsStatus.setLayerNames(Utilities.createVector(layerQuery,","));
......
484 486
				firstLoad = false;
485 487
			}
486 488
			
489
			// And finally, obtain the extent intersecting the view and the BBox
490
			// to draw to.
491
			Rectangle2D extent = new Rectangle2D.Double();
492
			Rectangle2D.intersect(vp.getAdjustedExtent(), bBox, extent);
493
			
487 494
			ViewPortData vpData = new ViewPortData(
488
				vp.getProjection(), new Extent(bBox), fixedSize );
495
				vp.getProjection(), new Extent(extent), fixedSize );
489 496
			vpData.setMat(vp.getAffineTransform());
490 497

  
491 498
			rasterProcess(g, vpData, f);
......
501 508
			this.setVisible(false);
502 509
		}
503 510
		
504
        
511
		
505 512
	}
506 513
	
507 514
	/**

Also available in: Unified diff