Package com.luciad.ogc.sld.view.gxy
Class TLcdSLDGXYLayerFactory
java.lang.Object
com.luciad.ogc.sld.view.gxy.TLcdSLDGXYLayerFactory
- All Implemented Interfaces:
ILcdSLDGXYLayerFactory
@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.
- Since:
- 2017.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configureForSLDStyling
(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, TLcdGXYLayer aLayerSFCT) StyleaLayerSFCT
using the specified SLD style.createGXYLayer
(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aStyles) Creates anILcdGXYLayer
for representing the givenILcdModel
on anILcdGXYView
, according to the givenTLcdSLDFeatureTypeStyle
's.
-
Constructor Details
-
TLcdSLDGXYLayerFactory
public TLcdSLDGXYLayerFactory()
-
-
Method Details
-
createGXYLayer
Description copied from interface:ILcdSLDGXYLayerFactory
Creates anILcdGXYLayer
for representing the givenILcdModel
on anILcdGXYView
, according to the givenTLcdSLDFeatureTypeStyle
's.- Specified by:
createGXYLayer
in interfaceILcdSLDGXYLayerFactory
- Parameters:
aModel
- the model that needs to be visualized in anILcdGXYView
aStyles
- the SLD feature type style(s) defining how the model should be visually represented on the view- Returns:
- a layer representing the given model, or
null
if a layer cannot be created (e.g. because this layer factory doesn't support the given model).
-
configureForSLDStyling
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:- Setting a
painter provider
andlabel painter provider
corresponding to the specified SLD style on the layer. - Setting a
model query configuration
based on the scales present in the SLD on the layer.
- Parameters:
aFeatureTypeStyle
- The SLD styleaLayerSFCT
- The layer to update
- Setting a
-