Package com.luciad.wmts.server
Class TLcdDefaultWMTSGetLegendGraphicEncoder
java.lang.Object
com.luciad.wmts.server.TLcdDefaultWMTSGetLegendGraphicEncoder
- All Implemented Interfaces:
ILcdWMTSGetLegendGraphicRequestEncoder
@LcdService(service=ILcdWMTSGetLegendGraphicRequestEncoder.class,
priority=20000)
public class TLcdDefaultWMTSGetLegendGraphicEncoder
extends Object
implements ILcdWMTSGetLegendGraphicRequestEncoder
This class provides a default legend graphic that depends on the type of model used: elevation, raster or vector.
These are the icons for each model type:
-
Elevation
-
Raster
-
Vector
- Since:
- 2022.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanencode(TLcdWMTSGetLegendGraphicRequestContext aWMTSGetLegendGraphicRequestContext, OutputStream aOutputStream) Encodes the legend graphic for a givenTLcdWMTSGetLegendGraphicRequestContextand sends it to the givenOutputStream.Returns the content MIME type of the encoder.
-
Constructor Details
-
TLcdDefaultWMTSGetLegendGraphicEncoder
public TLcdDefaultWMTSGetLegendGraphicEncoder()
-
-
Method Details
-
getContentType
Description copied from interface:ILcdWMTSGetLegendGraphicRequestEncoderReturns the content MIME type of the encoder.- Specified by:
getContentTypein interfaceILcdWMTSGetLegendGraphicRequestEncoder- Returns:
- the MIME-type as
String.
-
encode
public boolean encode(TLcdWMTSGetLegendGraphicRequestContext aWMTSGetLegendGraphicRequestContext, OutputStream aOutputStream) throws IOException Description copied from interface:ILcdWMTSGetLegendGraphicRequestEncoderEncodes the legend graphic for a givenTLcdWMTSGetLegendGraphicRequestContextand sends it to the givenOutputStream.- Specified by:
encodein interfaceILcdWMTSGetLegendGraphicRequestEncoder- Parameters:
aWMTSGetLegendGraphicRequestContext- a container for all relevant information that might be useful when generating legends.aOutputStream- theOutputStreamto write the output to.- Returns:
- True if the encoder can handle this case, false if it does not.
- Throws:
IOException- for any I/O Exceptions.
-