Revision 162 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.io/org.gvsig.raster.io.base/src/main/java/org/gvsig/fmap/dal/coverage/dataset/io/ErmapperDriver.java
ErmapperDriver.java | ||
---|---|---|
53 | 53 |
import org.gvsig.raster.impl.provider.DefaultRasterProvider; |
54 | 54 |
import org.gvsig.raster.impl.provider.RasterProvider; |
55 | 55 |
import org.gvsig.raster.impl.store.AbstractRasterStoreParameters; |
56 |
import org.gvsig.raster.impl.store.properties.DatasetColorInterpretation;
|
|
57 |
import org.gvsig.raster.impl.store.properties.DatasetTransparency;
|
|
56 |
import org.gvsig.raster.impl.store.properties.DataStoreColorInterpretation;
|
|
57 |
import org.gvsig.raster.impl.store.properties.DataStoreTransparency;
|
|
58 | 58 |
import org.gvsig.tools.ToolsLocator; |
59 | 59 |
import org.gvsig.tools.extensionpoint.ExtensionPoint; |
60 | 60 |
import org.gvsig.tools.extensionpoint.ExtensionPointManager; |
... | ... | |
76 | 76 |
private JNCSFile file = null; |
77 | 77 |
protected Transparency fileTransparency = null; |
78 | 78 |
private Extent viewRequest = null; |
79 |
private DatasetColorInterpretation colorInterpr = null;
|
|
79 |
private DataStoreColorInterpretation colorInterpr = null;
|
|
80 | 80 |
private boolean open = false; |
81 | 81 |
|
82 | 82 |
public static void register() { |
... | ... | |
214 | 214 |
*/ |
215 | 215 |
public Transparency getTransparency() { |
216 | 216 |
if(fileTransparency == null) |
217 |
fileTransparency = new DatasetTransparency();
|
|
217 |
fileTransparency = new DataStoreTransparency();
|
|
218 | 218 |
return fileTransparency; |
219 | 219 |
} |
220 | 220 |
|
... | ... | |
799 | 799 |
* color por banda |
800 | 800 |
* @return |
801 | 801 |
*/ |
802 |
public DatasetColorInterpretation getColorInterpretation(){
|
|
802 |
public DataStoreColorInterpretation getColorInterpretation(){
|
|
803 | 803 |
if(colorInterpr == null) { |
804 |
colorInterpr = new DatasetColorInterpretation();
|
|
804 |
colorInterpr = new DataStoreColorInterpretation();
|
|
805 | 805 |
colorInterpr.initColorInterpretation(getBandCount()); |
806 | 806 |
if(getBandCount() == 1) |
807 |
colorInterpr.setColorInterpValue(0, DatasetColorInterpretation.GRAY_BAND);
|
|
807 |
colorInterpr.setColorInterpValue(0, DataStoreColorInterpretation.GRAY_BAND);
|
|
808 | 808 |
if(getBandCount() >= 3) { |
809 |
colorInterpr.setColorInterpValue(0, DatasetColorInterpretation.RED_BAND);
|
|
810 |
colorInterpr.setColorInterpValue(1, DatasetColorInterpretation.GREEN_BAND);
|
|
811 |
colorInterpr.setColorInterpValue(2, DatasetColorInterpretation.BLUE_BAND);
|
|
809 |
colorInterpr.setColorInterpValue(0, DataStoreColorInterpretation.RED_BAND);
|
|
810 |
colorInterpr.setColorInterpValue(1, DataStoreColorInterpretation.GREEN_BAND);
|
|
811 |
colorInterpr.setColorInterpValue(2, DataStoreColorInterpretation.BLUE_BAND);
|
|
812 | 812 |
} |
813 | 813 |
} |
814 | 814 |
return colorInterpr; |
... | ... | |
817 | 817 |
/** |
818 | 818 |
* Asigna el objeto que contiene que contiene la interpretaci?n de |
819 | 819 |
* color por banda |
820 |
* @param DatasetColorInterpretation
|
|
820 |
* @param DataStoreColorInterpretation
|
|
821 | 821 |
*/ |
822 |
public void setColorInterpretation(DatasetColorInterpretation colorInterpretation){
|
|
822 |
public void setColorInterpretation(DataStoreColorInterpretation colorInterpretation){
|
|
823 | 823 |
this.colorInterpretation = colorInterpretation; |
824 | 824 |
} |
825 | 825 |
|
Also available in: Unified diff