@LcdService(service=ILcdSLDGXYLayerFactory.class, priority=50100) public final class TLcdSLDGXYLayerFactory extends Object implements ILcdSLDGXYLayerFactory
Fallback SLD layer factory for models containing vector or image data.
This layer factory only supports one TLcdSLDFeatureTypeStyle
. If no
feature type styles are given, no layer is created. If multiple feature type styles are given, an
IllegalArgumentException
is thrown.
We set the service priority to a fallback priority so that more specialized (or mixed vector/raster) raster models can be handled by more specialized layer factories.
Constructor and Description |
---|
TLcdSLDGXYLayerFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
configureForSLDStyling(TLcdSLDFeatureTypeStyle aFeatureTypeStyle,
TLcdGXYLayer aLayerSFCT)
Style
aLayerSFCT using the specified SLD style. |
ILcdGXYLayer |
createGXYLayer(ILcdModel aModel,
List<TLcdSLDFeatureTypeStyle> aStyles)
Creates an
ILcdGXYLayer for representing
the given ILcdModel on an ILcdGXYView , according to the given TLcdSLDFeatureTypeStyle 's. |
public ILcdGXYLayer createGXYLayer(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aStyles)
ILcdSLDGXYLayerFactory
ILcdGXYLayer
for representing
the given ILcdModel
on an ILcdGXYView
, according to the given TLcdSLDFeatureTypeStyle
's.createGXYLayer
in interface ILcdSLDGXYLayerFactory
aModel
- the model that needs to be visualized in an ILcdGXYView
aStyles
- the SLD feature type style(s) defining how the model should be visually represented on the viewnull
if a layer cannot be created (e.g. because this layer
factory doesn't support the given model).public static void configureForSLDStyling(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, TLcdGXYLayer aLayerSFCT)
Style aLayerSFCT
using the specified SLD style.
This method is a utility method, which is the equivalent of:
painter provider
and
label painter provider
corresponding to
the specified SLD style on the layer.model query configuration
based on
the scales present in the SLD on the layer.aFeatureTypeStyle
- The SLD styleaLayerSFCT
- The layer to update