Revision 27445 trunk/extensions/extSextanteGvsigBindings/src/es/unex/sextante/gvsig/core/gvRasterLayer.java

View differences:

gvRasterLayer.java
135 135
			FLyrRasterSE layer = (FLyrRasterSE) m_BaseDataObject;
136 136
			int iType = layerGrid.getDataType();
137 137

  
138
			try{
138 139
			if (iType == RasterBuffer.TYPE_DOUBLE) {
139 140
				return  layerGrid.getRasterBuf().getElemDouble(y, x, band);
140 141
			} else if (iType == RasterBuffer.TYPE_INT) {
......
146 147
			} else if ((iType == RasterBuffer.TYPE_SHORT) | (iType == RasterBuffer.TYPE_USHORT)) {
147 148
				return (double)  layerGrid.getRasterBuf().getElemShort(y, x, band);
148 149
			}
150
			} catch (InterruptedException e){
151
				// FIXME
152
				e.printStackTrace();
153
			}
149 154

  
150 155
			return layerGrid.getNoDataValue();
151 156
		}
......
256 261

  
257 262
		if (m_BaseDataObject instanceof FLyrRasterSE) {
258 263
			FLyrRasterSE layer = (FLyrRasterSE) m_BaseDataObject;
259
			if(layerGrid != null) 
264
			if(layerGrid != null)
260 265
				layerGrid.getRasterBuf().free();
261 266
			layerGrid = null;
262 267
		}

Also available in: Unified diff