Package com.luciad.wms.server
Interface ILcdRemoteOWSModelDecoder
public interface ILcdRemoteOWSModelDecoder
Decoder for user-defined layers.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecode
(TLcdSLDUserLayer aUserLayer, TLcdWMSRequestContext aWMSRequestContext) Checks whether thisILcdRemoteOWSModelDecoder
can decode the supplied user-defined layer.decode
(TLcdSLDUserLayer aUserLayer, TLcdWMSRequestContext aWMSRequestContext) Returns theILcdModel
(s) corresponding to a user-defined layer.
-
Method Details
-
canDecode
Checks whether thisILcdRemoteOWSModelDecoder
can decode the supplied user-defined layer.- Parameters:
aUserLayer
- the user-defined layer.aWMSRequestContext
- the WMS request context, which gives access to the originalHttpServletRequest
that was sent to the WMS and several other parameters.- Returns:
- true if this
ILcdRemoteOWSModelDecoder
can decode the supplied user-defined layer.
-
decode
ILcdModel[] decode(TLcdSLDUserLayer aUserLayer, TLcdWMSRequestContext aWMSRequestContext) throws IOException Returns theILcdModel
(s) corresponding to a user-defined layer. Whether to return one or moreILcdModel
objects depends on the contents of the user-defined layer. If this layer combines multiple coverages (WCS) or feature types (WFS), it may be necessary to decode each coverage or feature type into a singleILcdModel
. This is especially needed when these coverages or feature types have multiple model references, because anILcdModel
can be associated with only one model reference.- Parameters:
aUserLayer
- the user-defined layer.aWMSRequestContext
- the WMS request context, which gives access to the originalHttpServletRequest
that was sent to the WMS and several other parameters.- Returns:
- the
ILcdModel
(s) corresponding to the user-defined layer. - Throws:
IOException
- if the model can not be returned (because decoding fails).
-