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 Details

    • TLcdSLDGXYLayerFactory

      public TLcdSLDGXYLayerFactory()
  • Method Details

    • createGXYLayer

      public ILcdGXYLayer createGXYLayer(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aStyles)
      Description copied from interface: ILcdSLDGXYLayerFactory
      Creates an ILcdGXYLayer for representing the given ILcdModel on an ILcdGXYView, according to the given TLcdSLDFeatureTypeStyle's.
      Specified by:
      createGXYLayer in interface ILcdSLDGXYLayerFactory
      Parameters:
      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 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:

      Parameters:
      aFeatureTypeStyle - The SLD style
      aLayerSFCT - The layer to update