Revision 6316 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.gdal/org.gvsig.raster.gdal.provider.legend/src/main/java/org/gvsig/raster/gdal/provider/legend/RasterGdalGetColorInterpretation.java
RasterGdalGetColorInterpretation.java | ||
---|---|---|
112 | 112 |
|
113 | 113 |
switch (gdalNameCI) { |
114 | 114 |
case "Undefined" : |
115 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
115 |
return ColorInterpretation.PALETTE_BAND;
|
|
116 | 116 |
case "Gray" : |
117 | 117 |
return ColorInterpretation.GRAY_BAND; |
118 | 118 |
case "Palette" : |
... | ... | |
126 | 126 |
case "Alpha" : |
127 | 127 |
return ColorInterpretation.ALPHA_BAND; |
128 | 128 |
case "Hue" : |
129 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
129 |
return ColorInterpretation.HUE_BAND;
|
|
130 | 130 |
case "Saturation" : |
131 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
131 |
return ColorInterpretation.SATURATION_BAND;
|
|
132 | 132 |
case "Lightness" : |
133 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
133 |
return ColorInterpretation.LIGHTNESS_BAND;
|
|
134 | 134 |
case "Cyan" : |
135 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
135 |
return ColorInterpretation.CYAN_BAND;
|
|
136 | 136 |
case "Magenta" : |
137 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
137 |
return ColorInterpretation.MAGENTA_BAND;
|
|
138 | 138 |
case "Yellow" : |
139 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
139 |
return ColorInterpretation.YELLOW_BAND;
|
|
140 | 140 |
case "Black" : |
141 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
141 |
return ColorInterpretation.BLACK_BAND;
|
|
142 | 142 |
case "YCbCr_Y" : |
143 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
143 |
return ColorInterpretation.YCBCR_Y_BAND;
|
|
144 | 144 |
case "YCbCr_Cb" : |
145 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
145 |
return ColorInterpretation.YCBCR_CB_BAND;
|
|
146 | 146 |
case "YCbCr_Cr" : |
147 |
return ColorInterpretation.UNDEFINED_BAND;
|
|
147 |
return ColorInterpretation.YCBCR_CR_BAND;
|
|
148 | 148 |
default: |
149 | 149 |
return ColorInterpretation.UNDEFINED_BAND; |
150 | 150 |
} |
Also available in: Unified diff