Class TLcdWMSProxyGXYLayerFactory

java.lang.Object
com.luciad.wms.client.gxy.TLcdWMSProxyGXYLayerFactory
All Implemented Interfaces:
ILcdGXYLayerFactory

@LcdService(service=ILcdGXYLayerFactory.class, priority=20000) public class TLcdWMSProxyGXYLayerFactory extends Object implements ILcdGXYLayerFactory
Implementation of an ILcdGXYLayerFactory for an ILcdModel containing an ALcdWMSProxy object.

This layer factory sets a painter on the layer which re-projects the data from the WMS if necessary. The painter will automatically determine a reference that is supported by all layers in the GetMap request and that is similar to the world reference of the view. The resulting image will then be warped to match the current world reference.

If a map is requested which contains WMS layers without a common reference, the painter will issue multiple requests with different references and then paint the result as one image. It should be noted that using layers with incompatible references will generally be slower because multiple maps have to be retrieved.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new TLcdWMSProxyGXYLayerFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a TLcdWMSProxyGXYLayer for a model whose model descriptor is an instance of a TLcdWMSProxyModelDescriptor.
    boolean
    Returns whether the used WMS proxy painter uses a tiled painter instead of the standard painter.
    void
    setTiled(boolean aTiled)
    Sets whether the layer factory creates layers with the tiled WMS painter or the non-tiled WMS painter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TLcdWMSProxyGXYLayerFactory

      public TLcdWMSProxyGXYLayerFactory()
      Creates a new TLcdWMSProxyGXYLayerFactory.
  • Method Details

    • isTiled

      public boolean isTiled()
      Returns whether the used WMS proxy painter uses a tiled painter instead of the standard painter. The default for this layer factory is true.
      Returns:
      whether the used WMS proxy painter uses a tiled painter instead of the standard painter.
      Since:
      2021.0
    • setTiled

      public void setTiled(boolean aTiled)
      Sets whether the layer factory creates layers with the tiled WMS painter or the non-tiled WMS painter.
      Parameters:
      aTiled - whether a tiled WMS painter is used or not.
      Since:
      2021.0
    • createGXYLayer

      public ILcdGXYLayer createGXYLayer(ILcdModel aModel)
      Creates a TLcdWMSProxyGXYLayer for a model whose model descriptor is an instance of a TLcdWMSProxyModelDescriptor. Otherwise, an IllegalArgumentException is thrown. It is also assumed that the model contains exactly one ALcdWMSProxy object.
      Specified by:
      createGXYLayer in interface ILcdGXYLayerFactory
      Parameters:
      aModel - a model for which a layer must be created
      Returns:
      a instance of TLcdWMSProxyGXYLayer
      Throws:
      IllegalArgumentException - if the model descriptor is not an instance of TLcdWMSProxyModelDescriptor.
      See Also: