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 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: ILcdGXYViewEncoder
      Encodes a given ILcdGXYView to the provided OutputStream.
      Specified by:
      encodeGXYView in interface ILcdGXYViewEncoder
      Parameters:
      aGXYView - the ILcdGXYView to be encoded. You can rely on its getImage method to access the rendered view.
      aOutputStream - the OutputStream to write the encoded view to.
      aRequestContext - an ALcdRequestContext giving access to the request parameters. Can be null.
      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

      public String getContentType()
      Description copied from interface: ILcdGXYViewEncoder
      Returns 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 the encodeGXYView method to return the actually used content type for a given ILcdGXYView.
      Specified by:
      getContentType in interface ILcdGXYViewEncoder
      Specified by:
      getContentType in interface ILcdWMSFeatureInfoRequestEncoder
      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: ILcdWMSFeatureInfoRequestEncoder
      Encodes the given selection in the TLcdGXYLayerSubsetList from a given ILcdGXYView and sends it to the given OutputStream.
      Specified by:
      encode in interface ILcdWMSFeatureInfoRequestEncoder
      Parameters:
      aSubsetList - a TLcdGXYLayerSubsetList containing the selection to be encoded.
      aOutputStream - the OutputStream to write the output to.
      aGXYView - the ILcdGXYView in which the elements are selected .
      Throws:
      jakarta.servlet.ServletException - for writing and sending exceptions.