Class TLcdWMSXMLGetFeatureInfoEncoder
java.lang.Object
com.luciad.wms.server.viewencoder.TLcdWMSXMLGetFeatureInfoEncoder
- All Implemented Interfaces:
ILcdWMSGetFeatureInfoRequestEncoder
@LcdService(service=ILcdWMSGetFeatureInfoRequestEncoder.class,
priority=20000)
public class TLcdWMSXMLGetFeatureInfoEncoder
extends Object
implements ILcdWMSGetFeatureInfoRequestEncoder
Feature info encoder that encodes the features as XML.
The generated XML is based on the WMTS GetFeatureInfo XSD.
The following models are not supported and will be skipped. I.e. the features won't be present in the GetFeatureInfo response:
- GML 2 or GML 3.2 models, since they can't be transformed to GML 3.1.
ILcdFeatured
orILcdDataObject
models that already depend on GML (for example: ASTERIX file format), since they can't be transformed to GML 3.1
- Since:
- 2022.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView, TLcdWMSRequestContext aWMSRequestContext) Encodes the given selection in theTLcdGXYLayerSubsetList
from a givenILcdGXYView
and sends it to the givenOutputStream
.Returns the content MIME type of the encoder.
-
Constructor Details
-
TLcdWMSXMLGetFeatureInfoEncoder
public TLcdWMSXMLGetFeatureInfoEncoder()
-
-
Method Details
-
getContentType
Description copied from interface:ILcdWMSGetFeatureInfoRequestEncoder
Returns the content MIME type of the encoder.- Specified by:
getContentType
in interfaceILcdWMSGetFeatureInfoRequestEncoder
- Returns:
- the MIME-type as
String
.
-
encode
public void encode(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView, TLcdWMSRequestContext aWMSRequestContext) throws jakarta.servlet.ServletException Description copied from interface:ILcdWMSGetFeatureInfoRequestEncoder
Encodes the given selection in theTLcdGXYLayerSubsetList
from a givenILcdGXYView
and sends it to the givenOutputStream
.- Specified by:
encode
in interfaceILcdWMSGetFeatureInfoRequestEncoder
- Parameters:
aSelectionSublist
- aTLcdGXYLayerSubsetList
containing the selection to be encoded.aOutputStream
- theOutputStream
to write the output to.aGXYView
- theILcdGXYView
in which the elements are selected .aWMSRequestContext
- a container for the original request and other related request parameters.- Throws:
jakarta.servlet.ServletException
- for writing and sending exceptions.
-