Interface ILcdWCSModelEncoderFactory


public interface ILcdWCSModelEncoderFactory
A factory for model encoders to be used by WCS. The WCS framework addresses the following concerns:
  • Clip the input model to the output bounds.
  • Transform the input model's image to the output reference.
  • Convert models containing legacy ILcdRaster elements to models containing ALcdImage elements.
  • Pick the most appropriate level from an ALcdMultilevelImage or ALcdMultilevelImageMosaic based on output resolution, and fall back to less detailed levels in case of missing tiles or no-data-values.
  • Composite multiple ALcdImage elements into a single ALcdBasicImage.
Because the WCS framework addresses all of these concerns, the model encoders can be kept relatively simple:

If your model encoder implements ILcdWCSModelEncoder, the WCS framework will, for backwards compatibility, not perform any of the aforementioned processing such as clipping, transforming and converting. Instead, it will pass the input model directly to ILcdModelEncoder.export(ILcdModel, String). The implementation is then entirely responsible for clipping, transforming and converting.

  • Method Details

    • createModelEncoder

      ILcdModelEncoder createModelEncoder(ILcdModel aModel, ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWCSRequestContext aRequestContext)
      Returns a model encoder that can write the given model to an output stream provided by the given factory, in the given format.
      Parameters:
      aModel - An ILcdModel.
      aOutputStreamFactory - An ILcdOutputStreamFactory.
      aOutputFormat - A string describing the requested output format, e.g. "GeoTIFF".
      aRequestContext - Context information regarding the WCS request being handled.
      Returns:
      An ILcdModelEncoder.