Class TLcdGXYViewSVGEncoder
java.lang.Object
com.luciad.wms.server.viewencoder.TLcdGXYViewSVGEncoder
- All Implemented Interfaces:
ILcdGXYViewEncoder,ILcdWMSFeatureInfoRequestEncoder
public class TLcdGXYViewSVGEncoder
extends Object
implements ILcdGXYViewEncoder, ILcdWMSFeatureInfoRequestEncoder
Class implements
ILcdGXYViewEncoder and ILcdWMSFeatureInfoRequestEncoder.
This encoder encodes a ILcdGXYView as SVG, with or without selection.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(ILcdGXYLayerSubsetList aSubsetList, OutputStream aOutputStream, ILcdGXYView aGXYView) Encodes the given selection in theTLcdGXYLayerSubsetListfrom a givenILcdGXYViewand sends it to the givenOutputStream.encodeGXYView(ILcdGXYView aGXYView, OutputStream aOutputStream, ALcdRequestContext aRequestContext) Encodes a givenILcdGXYViewto the providedOutputStream.Returns a content type that identifies the encoding approach used by this encoder and that gets advertised in the OGC service capabilities.intThe precision controls the number of decimal places used in floating point values output.voidsetPrecision(int aPrecision) The precision controls the number of decimal places used in floating point values output.
-
Constructor Details
-
TLcdGXYViewSVGEncoder
public TLcdGXYViewSVGEncoder()
-
-
Method Details
-
getPrecision
public int getPrecision()The precision controls the number of decimal places used in floating point values output. Note that the precision is clipped to the [0,12] range.- Returns:
- the number of decimal places used in floating point values output.
- See Also:
-
setPrecision
public void setPrecision(int aPrecision) The precision controls the number of decimal places used in floating point values output. Note that the precision is clipped to the [0,12] range.- Parameters:
aPrecision- the number of decimal places to use in floating point values output.- See Also:
-
encodeGXYView
public String encodeGXYView(ILcdGXYView aGXYView, OutputStream aOutputStream, ALcdRequestContext aRequestContext) throws IOException Description copied from interface:ILcdGXYViewEncoderEncodes a givenILcdGXYViewto the providedOutputStream.- Specified by:
encodeGXYViewin interfaceILcdGXYViewEncoder- Parameters:
aGXYView- theILcdGXYViewto be encoded. You can rely on itsgetImagemethod to access the rendered view.aOutputStream- theOutputStreamto write the encoded view to.aRequestContext- anALcdRequestContextgiving access to the request parameters. Can benull.- Returns:
- the content type used by the encoding. This is set as content type on the HTTP(S) response and cannot be
null. - Throws:
IOException- if an I/O exception occurs during the encoding
-
getContentType
Description copied from interface:ILcdGXYViewEncoderReturns a content type that identifies the encoding approach used by this encoder and that gets advertised in the OGC service capabilities. This is usually the MIME type of the encoded result, but this is not required: it is up to theencodeGXYViewmethod to return the actually used content type for a givenILcdGXYView.- Specified by:
getContentTypein interfaceILcdGXYViewEncoder- Specified by:
getContentTypein interfaceILcdWMSFeatureInfoRequestEncoder- Returns:
- the content type that identifies the encoding approach used by this encoder
-
encode
public void encode(ILcdGXYLayerSubsetList aSubsetList, OutputStream aOutputStream, ILcdGXYView aGXYView) throws jakarta.servlet.ServletException Description copied from interface:ILcdWMSFeatureInfoRequestEncoderEncodes the given selection in theTLcdGXYLayerSubsetListfrom a givenILcdGXYViewand sends it to the givenOutputStream.- Specified by:
encodein interfaceILcdWMSFeatureInfoRequestEncoder- Parameters:
aSubsetList- aTLcdGXYLayerSubsetListcontaining the selection to be encoded.aOutputStream- theOutputStreamto write the output to.aGXYView- theILcdGXYViewin which the elements are selected .- Throws:
jakarta.servlet.ServletException- for writing and sending exceptions.
-