Package com.luciad.wms.sld.model
Class TLcdSLDUserLayer
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.ALcdSLDLayer
com.luciad.wms.sld.model.TLcdSLDUserLayer
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Represents a user-defined layer to be built from WFS, WCS or inline (embedded) feature data.
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdSLDUserLayer
instance.TLcdSLDUserLayer
(TLcdDataType aDataType) Creates a newTLcdSLDUserLayer
instance.TLcdSLDUserLayer
(String aName, ALcdSLDLayerStyle[] aSLDLayerStyles, TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints, TLcdSLDRemoteOWS aRemoteOWS) Creates a newTLcdSLDUserLayer
instance with the given name, layer styles and constraints. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayerStyle
(ALcdSLDLayerStyle aLayerStyle) Adds a style to this user-defined layer.Returns the inline feature associated with this user-defined layer.Returns the remote service associated with this user-defined layer.void
setInlineFeature
(TLcdSLDInlineFeature aInlineFeature) Sets an inline feature for this user-defined layer.void
setRemoteOWS
(TLcdSLDRemoteOWS aRemoteOWS) Sets a remote service for this user-defined layer.Methods inherited from class com.luciad.wms.sld.model.ALcdSLDLayer
getLayerFeatureConstraint, getLayerStyle, getLayerStyleCount, getName, removeLayerStyle, setLayerFeatureConstraint, setName
-
Constructor Details
-
TLcdSLDUserLayer
public TLcdSLDUserLayer()Creates a newTLcdSLDUserLayer
instance. -
TLcdSLDUserLayer
public TLcdSLDUserLayer(String aName, ALcdSLDLayerStyle[] aSLDLayerStyles, TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints, TLcdSLDRemoteOWS aRemoteOWS) Creates a newTLcdSLDUserLayer
instance with the given name, layer styles and constraints.- Parameters:
aName
- The name of the layer.aSLDLayerStyles
- The styles of the layer.aLayerFeatureConstraints
- The layer feature constraint.aRemoteOWS
- The reference to a remote server.
-
TLcdSLDUserLayer
Creates a newTLcdSLDUserLayer
instance.
-
-
Method Details
-
getRemoteOWS
Returns the remote service associated with this user-defined layer.- Returns:
- a remote service, or
null
if no remote service is defined.
-
setRemoteOWS
Sets a remote service for this user-defined layer. Setting a remote OWS will reset any previously set inline feature.- Parameters:
aRemoteOWS
- a remote service for this user-defined layer.
-
getInlineFeature
Returns the inline feature associated with this user-defined layer.- Returns:
- the inline feature associated with this user-defined layer.
- Since:
- 2012.1
-
setInlineFeature
Sets an inline feature for this user-defined layer. Setting an inline feature will remove any previously set 'RemoteOWS'.- Parameters:
aInlineFeature
- an inline feature for this user-defined layer.- Since:
- 2012.1
-
addLayerStyle
Adds a style to this user-defined layer.Note that the style instance needs to be a user-defined styles, i.e. an instance of
TLcdSLDUserStyle
. This is because only user-defined styles can be used for user-defined layers.- Overrides:
addLayerStyle
in classALcdSLDLayer
- Parameters:
aLayerStyle
- the style to be added.
-