Revision 6906 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.wmts/org.gvsig.wmts.provider.legend/src/main/java/org/gvsig/wmts/provider/legend/WMTSRasterGetLegend.java
WMTSRasterGetLegend.java | ||
---|---|---|
26 | 26 |
import org.slf4j.LoggerFactory; |
27 | 27 |
|
28 | 28 |
import org.gvsig.fmap.dal.raster.api.RasterStore; |
29 |
import org.gvsig.raster.lib.legend.api.ColorInterpretation; |
|
30 |
import org.gvsig.raster.lib.legend.api.ColorTable; |
|
31 | 29 |
import org.gvsig.raster.lib.legend.api.RasterLegend; |
32 | 30 |
import org.gvsig.raster.lib.legend.api.RasterLegendLocator; |
33 | 31 |
import org.gvsig.raster.lib.legend.api.RasterLegendManager; |
32 |
import org.gvsig.raster.lib.legend.api.colorinterpretation.ColorInterpretation; |
|
33 |
import org.gvsig.raster.lib.legend.api.colortable.ColorTable; |
|
34 | 34 |
import org.gvsig.wmts.provider.WMTSRasterProvider; |
35 | 35 |
import org.gvsig.tools.ToolsLocator; |
36 | 36 |
import org.gvsig.tools.dynobject.DynClass; |
... | ... | |
86 | 86 |
invokeDynMethod(RasterStore.DYNMETHOD_GETCOLORINTERPRETATION_NAME, null); |
87 | 87 |
|
88 | 88 |
legend= legendManager.createLegend(colorInterpretation); |
89 |
if ( !( colorInterpretation.isBGR() || colorInterpretation.isRGB() || colorInterpretation.isRGBA() ) ){ |
|
90 |
ColorTable colorTable=(ColorTable)provider. |
|
91 |
invokeDynMethod(RasterStore.DYNMETHOD_GETCOLORTABLE_NAME, null); |
|
92 |
legend.setColorTable(colorTable); |
|
93 |
} |
|
94 | 89 |
|
95 | 90 |
return legend; |
96 | 91 |
} |
Also available in: Unified diff