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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
encode
(TLcdWMTSGetLegendGraphicRequestContext aWMTSGetLegendGraphicRequestContext, OutputStream aOutputStream) Encodes the legend graphic for a givenTLcdWMTSGetLegendGraphicRequestContext
and 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:ILcdWMTSGetLegendGraphicRequestEncoder
Returns the content MIME type of the encoder.- Specified by:
getContentType
in interfaceILcdWMTSGetLegendGraphicRequestEncoder
- Returns:
- the MIME-type as
String
.
-
encode
public boolean encode(TLcdWMTSGetLegendGraphicRequestContext aWMTSGetLegendGraphicRequestContext, OutputStream aOutputStream) throws IOException Description copied from interface:ILcdWMTSGetLegendGraphicRequestEncoder
Encodes the legend graphic for a givenTLcdWMTSGetLegendGraphicRequestContext
and sends it to the givenOutputStream
.- Specified by:
encode
in interfaceILcdWMTSGetLegendGraphicRequestEncoder
- Parameters:
aWMTSGetLegendGraphicRequestContext
- a container for all relevant information that might be useful when generating legends.aOutputStream
- theOutputStream
to 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.
-