Package com.luciad.wms.client.gxy
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateGXYLayer
(ILcdModel aModel) Creates aTLcdWMSProxyGXYLayer
for a model whose model descriptor is an instance of aTLcdWMSProxyModelDescriptor
.boolean
isTiled()
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.
-
Constructor Details
-
TLcdWMSProxyGXYLayerFactory
public TLcdWMSProxyGXYLayerFactory()Creates a newTLcdWMSProxyGXYLayerFactory
.
-
-
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 istrue
.- 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
Creates aTLcdWMSProxyGXYLayer
for a model whose model descriptor is an instance of aTLcdWMSProxyModelDescriptor
. Otherwise, anIllegalArgumentException
is thrown. It is also assumed that the model contains exactly oneALcdWMSProxy
object.- Specified by:
createGXYLayer
in interfaceILcdGXYLayerFactory
- 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 ofTLcdWMSProxyModelDescriptor
.- See Also:
-