Revision 162 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/render/DefaultRender.java

View differences:

DefaultRender.java
60 60
import org.gvsig.raster.impl.grid.filter.DefaultRasterFilterList;
61 61
import org.gvsig.raster.impl.grid.filter.band.ColorTableFilter;
62 62
import org.gvsig.raster.impl.store.DefaultMultiRasterStore;
63
import org.gvsig.raster.impl.store.properties.DatasetColorInterpretation;
63
import org.gvsig.raster.impl.store.properties.DataStoreColorInterpretation;
64 64
import org.gvsig.tools.ToolsLocator;
65 65
import org.gvsig.tools.dynobject.DynStruct;
66 66
import org.gvsig.tools.persistence.PersistenceManager;
......
192 192
				
193 193
			ColorInterpretation colorInterpr = dataStore.getColorInterpretation();
194 194
			if (colorInterpr != null)
195
				if (colorInterpr.getBand(DatasetColorInterpretation.PAL_BAND) == -1) {
195
				if (colorInterpr.getBand(DataStoreColorInterpretation.PAL_BAND) == -1) {
196 196
					if (colorInterpr.isUndefined())
197 197
						return;
198 198
					int[] result = new int[] { -1, -1, -1 };
199
					int gray = colorInterpr.getBand(DatasetColorInterpretation.GRAY_BAND);
199
					int gray = colorInterpr.getBand(DataStoreColorInterpretation.GRAY_BAND);
200 200
					if (gray != -1)
201 201
						result[0] = result[1] = result[2] = gray;
202 202
					else {
203
						int r = colorInterpr.getBand(DatasetColorInterpretation.RED_BAND);
203
						int r = colorInterpr.getBand(DataStoreColorInterpretation.RED_BAND);
204 204
						if (r != -1)
205 205
							result[0] = r;
206
						int g = colorInterpr.getBand(DatasetColorInterpretation.GREEN_BAND);
206
						int g = colorInterpr.getBand(DataStoreColorInterpretation.GREEN_BAND);
207 207
						if (g != -1)
208 208
							result[1] = g;
209
						int b = colorInterpr.getBand(DatasetColorInterpretation.BLUE_BAND);
209
						int b = colorInterpr.getBand(DataStoreColorInterpretation.BLUE_BAND);
210 210
						if (b != -1)
211 211
							result[2] = b;
212 212
					}

Also available in: Unified diff