Package com.luciad.ogc.sld.view.gxy
Class TLcdSLDFileGXYLayerFactory
java.lang.Object
com.luciad.ogc.sld.view.gxy.TLcdSLDFileGXYLayerFactory
- All Implemented Interfaces:
ILcdGXYLayerFactory
@LcdService(priority=20100)
public class TLcdSLDFileGXYLayerFactory
extends Object
implements ILcdGXYLayerFactory
Layer factory that creates SLD styled layers if the data source file is accompanied by an SLD (.sld) file.
If no matching SLD file is found, this layer factory returns null
. This layer factory uses a naming
convention to look for an SLD file. When a file is named "<fileName>.<ext>"
, it will look for an SLD file
called "<fileName>.sld"
. I.e. it will replace the extension by the "sld"
extension, and check
if such a file exists.
- Since:
- 2017.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdSLDFileGXYLayerFactory
that uses the service loader to retrieveILcdSLDGXYLayerFactory
instance to delegate to.TLcdSLDFileGXYLayerFactory
(Supplier<ILcdSLDGXYLayerFactory> aDelegateLayerFactorySupplier) Creates a newTLcdSLDFileGXYLayerFactory
that delegates to the suppliedILcdSLDGXYLayerFactory
to create a layer using the decodedTLcdSLDFeatureTypeStyle
. -
Method Summary
Modifier and TypeMethodDescriptioncreateGXYLayer
(ILcdModel aModel) Creates an SLD styled layer if the model's source file is accompanied by an SLD (.sld) file.
-
Constructor Details
-
TLcdSLDFileGXYLayerFactory
public TLcdSLDFileGXYLayerFactory()Creates a newTLcdSLDFileGXYLayerFactory
that uses the service loader to retrieveILcdSLDGXYLayerFactory
instance to delegate to. -
TLcdSLDFileGXYLayerFactory
Creates a newTLcdSLDFileGXYLayerFactory
that delegates to the suppliedILcdSLDGXYLayerFactory
to create a layer using the decodedTLcdSLDFeatureTypeStyle
.- Parameters:
aDelegateLayerFactorySupplier
- a delegate SLD layer factory supplier
-
-
Method Details
-
createGXYLayer
Creates an SLD styled layer if the model's source file is accompanied by an SLD (.sld) file.- Specified by:
createGXYLayer
in interfaceILcdGXYLayerFactory
- Parameters:
aModel
- a model that needs to be visualized in anILcdGXYView
- Returns:
- an SLD styled layer if the model's source file is accompanied by an SLD (.sld) file, or null if this is not the case
- See Also:
-