Revision 162 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.main/src/test/java/org/gvsig/fmap/dal/coverage/dataset/io/rmf/TestRmfWrite.java
TestRmfWrite.java | ||
---|---|---|
45 | 45 |
import org.gvsig.raster.impl.datastruct.serializer.NoDataRmfSerializer; |
46 | 46 |
import org.gvsig.raster.impl.provider.DefaultRasterProvider; |
47 | 47 |
import org.gvsig.raster.impl.store.QueryableRaster; |
48 |
import org.gvsig.raster.impl.store.properties.DatasetColorInterpretation;
|
|
49 |
import org.gvsig.raster.impl.store.properties.DatasetStatistics;
|
|
48 |
import org.gvsig.raster.impl.store.properties.DataStoreColorInterpretation;
|
|
49 |
import org.gvsig.raster.impl.store.properties.DataStoreStatistics;
|
|
50 | 50 |
import org.gvsig.raster.impl.store.rmf.RmfBlocksManager; |
51 | 51 |
import org.gvsig.raster.impl.store.serializer.ColorInterpretationRmfSerializer; |
52 | 52 |
import org.gvsig.raster.impl.store.serializer.GeoInfoRmfSerializer; |
... | ... | |
125 | 125 |
blocksManager.addClient(ser1); |
126 | 126 |
|
127 | 127 |
// Estadisticas |
128 |
DatasetStatistics stat = ((QueryableRaster)f).getProvider(0).getStatistics();
|
|
128 |
DataStoreStatistics stat = ((QueryableRaster)f).getProvider(0).getStatistics();
|
|
129 | 129 |
stat.setTailTrimValue(3.0, new Double(10.0)); |
130 | 130 |
stat.setTailTrimValue(4.0, new Double(16.0)); |
131 | 131 |
StatisticsRmfSerializer ser2 = new StatisticsRmfSerializer(stat); |
... | ... | |
169 | 169 |
|
170 | 170 |
// Interpretaci?n de color |
171 | 171 |
ColorInterpretation ci = f.getColorInterpretation(); |
172 |
ci.setColorInterpValue(0, DatasetColorInterpretation.BLUE_BAND);
|
|
173 |
ci.setColorInterpValue(2, DatasetColorInterpretation.RED_BAND);
|
|
174 |
ColorInterpretationRmfSerializer ser6 = new ColorInterpretationRmfSerializer((DatasetColorInterpretation)f.getColorInterpretation());
|
|
172 |
ci.setColorInterpValue(0, DataStoreColorInterpretation.BLUE_BAND);
|
|
173 |
ci.setColorInterpValue(2, DataStoreColorInterpretation.RED_BAND);
|
|
174 |
ColorInterpretationRmfSerializer ser6 = new ColorInterpretationRmfSerializer((DataStoreColorInterpretation)f.getColorInterpretation());
|
|
175 | 175 |
blocksManager.addClient(ser6); |
176 | 176 |
|
177 | 177 |
try { |
Also available in: Unified diff