@LcdService(service=ILcdGXYLayerFactory.class, priority=20000) public class TLcdWMSProxyGXYLayerFactory extends Object implements ILcdGXYLayerFactory
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 and Description |
---|
TLcdWMSProxyGXYLayerFactory()
Creates a new
TLcdWMSProxyGXYLayerFactory . |
Modifier and Type | Method and Description |
---|---|
ILcdGXYLayer |
createGXYLayer(ILcdModel aModel)
Creates a
TLcdWMSProxyGXYLayer for a model whose model descriptor is an
instance of a TLcdWMSProxyModelDescriptor . |
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.
|
public TLcdWMSProxyGXYLayerFactory()
TLcdWMSProxyGXYLayerFactory
.public boolean isTiled()
true
.public void setTiled(boolean aTiled)
aTiled
- whether a tiled WMS painter is used or not.public ILcdGXYLayer createGXYLayer(ILcdModel aModel)
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.createGXYLayer
in interface ILcdGXYLayerFactory
aModel
- a model for which a layer must be createdTLcdWMSProxyGXYLayer
IllegalArgumentException
- if the model descriptor is not an instance of
TLcdWMSProxyModelDescriptor
.TLcdGXYViewJPanel.setGXYLayerFactory(com.luciad.view.gxy.ILcdGXYLayerFactory)