Class TLcdWMSGeoJsonGetFeatureInfoEncoder
java.lang.Object
com.luciad.wms.server.viewencoder.TLcdWMSGeoJsonGetFeatureInfoEncoder
- All Implemented Interfaces:
ILcdWMSGetFeatureInfoRequestEncoder
@LcdService(service=ILcdWMSGetFeatureInfoRequestEncoder.class,
priority=20000)
public class TLcdWMSGeoJsonGetFeatureInfoEncoder
extends Object
implements ILcdWMSGetFeatureInfoRequestEncoder
Feature info encoder that encodes the features as GeoJSON.
The geometries of the features are converted to WGS-84.
Geometries that are not supported within GeoJSON are converted to discretized versions of supported geometries.
If they cannot be discretized, the bounds are used as fallback.
- Since:
- 2017.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
-
TLcdWMSGeoJsonGetFeatureInfoEncoder
public TLcdWMSGeoJsonGetFeatureInfoEncoder()
-
-
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.
-