Revision 2309
org.gvsig.raster.tools/branches/org.gvsig.raster.tools_dataaccess_refactoring/org.gvsig.raster.tools.algorithm/org.gvsig.raster.tools.algorithm.layerdatatype/src/main/java/org/gvsig/raster/tools/algorithm/layerdatatype/LayerDatatypeProcess.java | ||
---|---|---|
26 | 26 |
import org.gvsig.fmap.dal.coverage.dataset.BufferParam; |
27 | 27 |
import org.gvsig.fmap.dal.coverage.datastruct.NoData; |
28 | 28 |
import org.gvsig.fmap.dal.coverage.exception.BufferCreationException; |
29 |
import org.gvsig.fmap.dal.coverage.exception.CloneException; |
|
29 | 30 |
import org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException; |
30 | 31 |
import org.gvsig.fmap.dal.coverage.exception.QueryException; |
31 | 32 |
import org.gvsig.fmap.dal.coverage.store.RasterDataStore; |
... | ... | |
92 | 93 |
public void process() throws ProcessInterruptedException { |
93 | 94 |
insertLineLog(Messages.getText("layer_datatype")); |
94 | 95 |
try { |
96 |
store = store.newNotTiledDataStore(); |
|
95 | 97 |
if (store == null) |
96 | 98 |
throw new LayerDatatypeException("intput_not_valid"); |
97 | 99 |
|
... | ... | |
190 | 192 |
if (incrementableTask != null) |
191 | 193 |
incrementableTask.processFinalize(); |
192 | 194 |
messageBoxError("error_creating_buffer", this, e); |
193 |
} |
|
195 |
}
|
|
194 | 196 |
} |
195 | 197 |
|
196 | 198 |
public double getDecimalValue(double value, int inDataType) { |
org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/filter/band/ColorTableFilter.java | ||
---|---|---|
21 | 21 |
*/ |
22 | 22 |
package org.gvsig.raster.impl.grid.filter.band; |
23 | 23 |
|
24 |
import org.gvsig.fmap.dal.coverage.RasterLocator; |
|
24 | 25 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
25 | 26 |
import org.gvsig.fmap.dal.coverage.datastruct.Params; |
26 | 27 |
import org.gvsig.fmap.dal.coverage.exception.FilterAddException; |
27 | 28 |
import org.gvsig.fmap.dal.coverage.grid.filter.BaseRasterFilter; |
29 |
import org.gvsig.fmap.dal.coverage.store.props.ColorInterpretation; |
|
28 | 30 |
import org.gvsig.fmap.dal.coverage.store.props.ColorTable; |
29 | 31 |
import org.gvsig.raster.impl.store.ParamsImpl; |
30 | 32 |
import org.gvsig.raster.impl.store.properties.DataStoreColorTable; |
... | ... | |
60 | 62 |
hasAlpha = colorTable.hasAlpha(); |
61 | 63 |
|
62 | 64 |
//El filtro de tabla de color convierte a ARGB a partir de paleta |
65 |
ColorInterpretation ci = RasterLocator.getManager().getDataStructFactory().createColorInterpretation( |
|
66 |
new String[]{ColorInterpretation.RED_BAND, |
|
67 |
ColorInterpretation.GREEN_BAND, |
|
68 |
ColorInterpretation.BLUE_BAND, |
|
69 |
ColorInterpretation.ALPHA_BAND}); |
|
70 |
transparency.setColorInterpretation(ci); |
|
71 |
transparency.activeTransparency(); |
|
63 | 72 |
|
64 | 73 |
createARGBBufferResult(); |
65 | 74 |
} |
Also available in: Unified diff