Revision 3767 org.gvsig.raster.wms/trunk/org.gvsig.raster.wms/org.gvsig.raster.wms.app.wmsclient/src/main/java/org/gvsig/raster/wms/app/wmsclient/layer/FLyrWMS.java

View differences:

FLyrWMS.java
674 674
	}
675 675
	
676 676
	private void splitRequestCalculation(int width, int height) {
677
		mustSplitRequest = (!getDataStore().isTiled() && (width > maxTileDrawWidth || height > maxTileDrawHeight));
677
            RasterDataStore store = this.getDataStore();
678
            if( store == null ) {
679
                String msg = "Can't get RasterDataStore associated to this layer ("+this.toString()+").";
680
                logger.warn(msg);
681
                throw new RuntimeException(msg);
682
            }
683
            mustSplitRequest = (!store.isTiled() && (width > maxTileDrawWidth || height > maxTileDrawHeight));
678 684
	}
679 685

  
680 686
	public ComposedLayer newComposedLayer() {

Also available in: Unified diff