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.
ILcdFeaturedorILcdDataObjectmodels 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView, TLcdWMSRequestContext aWMSRequestContext) Encodes the given selection in theTLcdGXYLayerSubsetListfrom a givenILcdGXYViewand 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:ILcdWMSGetFeatureInfoRequestEncoderReturns the content MIME type of the encoder.- Specified by:
getContentTypein 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:ILcdWMSGetFeatureInfoRequestEncoderEncodes the given selection in theTLcdGXYLayerSubsetListfrom a givenILcdGXYViewand sends it to the givenOutputStream.- Specified by:
encodein interfaceILcdWMSGetFeatureInfoRequestEncoder- Parameters:
aSelectionSublist- aTLcdGXYLayerSubsetListcontaining the selection to be encoded.aOutputStream- theOutputStreamto write the output to.aGXYView- theILcdGXYViewin 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.
-