Package com.luciad.wms.server.model
Class TLcdWMSLayer
java.lang.Object
com.luciad.wms.server.model.ALcdWMSLayer
com.luciad.wms.server.model.TLcdWMSLayer
Default implementation of a
ALcdWMSLayer.
If you want the WMS layer to be advertised such that client applications can include it within their requests you need to do the following.
- Call
setName(String)setName(layerName). - Call
setNameVisible(boolean)setNameVisible(true).
true in all cases.
An example is when you have a layer containing sub-layers as a grouping of related layers in the hierarchy.
If you want the WMS layer to be advertised such that it can be included in GetFeatureInfo requests you
need to call the method setQueryable(true).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthorityURL(ALcdWMSAuthorityURL aAuthorityURL) Adds a newALcdWMSAuthorityURLto thisALcdWMSLayer.voidaddBoundingBox(String aCoordinateReferenceSystem, ILcdBounds aBoundsForCRS) Registers the bounding box for an extra coordinate reference system in which this layer can be visualized.voidaddChildWMSLayer(ALcdWMSLayer aChildWMSLayer) Adds a child to this layer.voidaddCoordinateReferenceSystem(String aCoordinateReferenceSystem) Adds an extra coordinate reference system in which this layer can be visualized.voidaddDataURL(TLcdWMSURL aDataURL) Adds a newTLcdWMSURLrepresenting a DataURL to thisALcdWMSLayer.voidaddDimension(ALcdWMSDimension aDimension) Adds aALcdWMSDimensionto thisALcdWMSLayer.voidaddFeatureListURL(TLcdWMSURL aFeatureListURL) Adds a newTLcdWMSURLrepresenting a FeatureListURL to thisALcdWMSLayer.voidaddIdentifier(TLcdWMSIdentifier aIdentifier) Adds aTLcdWMSIdentifierto thisALcdWMSLayer.voidaddKeyword(String aKeyword) Adds a keyword for this layer.voidaddMetadataURL(TLcdWMSURL aMetadataURL) Adds a newTLcdWMSURLrepresenting a MetadataURL to thisALcdWMSLayer.voidaddStyle(ALcdWMSLayerStyle aWMSStyle) Adds a style for thisALcdWMSLayerand its children.findWMSLayer(String aLayerName) Search for a layer in the hierarchy with the requested layer name.Returns an abstract for this layer.getAuthorityURL(int aIndex) Returns theALcdWMSAuthorityURLat a given index.intReturns the number ofALcdWMSAuthorityURLobjects specified within thisALcdWMSLayer.getBoundingBox(String aCoordinateReferenceSystem) Returns the bounding box of this layer in the extra coordinate reference, if it has been provided.getChildWMSLayer(int aIndex) Returns the sub-layer at an index.intReturns the number of sub-layers this layer is composed of.intgetChildWMSLayerIndex(ALcdWMSLayer aLayer) Returns the index of a child layer in the list.getCoordinateReferenceSystem(int aIndex) Returns the extra coordinate reference system in which this layer can be displayed.intReturns the number of extra coordinate reference systems in which this layer can be displayed.getDataURL(int aIndex) Returns theTLcdWMSURLrepresenting a DataURL at the given index.intReturns the number ofTLcdWMSURLobjects representing DataURLs.getDimension(int aIndex) Returns the dimensional parameter definition at the given index.intReturns the number of dimensional parameters associated with this layer (and child layers).getFeatureListURL(int aIndex) Returns theTLcdWMSURLrepresenting a FeatureListURL at the given index.intReturns the number ofTLcdWMSURLobjects representing FeatureListURLs.intReturns the fixed height of this layer.intReturns the fixed width of this layer.getIdentifier(int aIndex) Returns theTLcdWMSIdentifierat a given index.intReturns the number ofTLcdWMSIdentifierof thisALcdWMSLayer.getKeyword(int aIndex) Returns the keyword at the given index.intReturns the number of keywords.doubleReturns the max scale denominator range value.getMetadataURL(int aIndex) Returns theTLcdWMSURLrepresenting a MetadataURL at the given index.intReturns the number ofTLcdWMSURLobjects representing MetadataURLs.doubleReturns the min scale denominator range value.getName()Returns the name of this layer.getProperty(String aKey) Searches the property with the specified key.getProperty(String aKey, Object aDefaultValue) Searches the property with the specified key.Returns the source name of the data for this layer.getTitle()Returns the title of this layer.Returns the bounding box of this layer in WGS84.getWMSLayerStyle(int aIndex) Returns one of the new styles defined by this layer (for the specific index).intReturns the number of new styles this layer defines.booleanEach layer has a key, but this might not be visible to the WMS user (if the implementor of the WMS service does not want the layer to be retrievable).booleanReturns the value of the 'noSubsets' parameter of this layer.isOpaque()Returns whether the layer represents map data that is mostly or completely opaque.booleanReturns if the layer has extra (meta) information available.voidmoveLayerAt(ALcdWMSLayer aChildWMSLayer, int aIndex) Moves a child layer to a different position in the list.voidputProperty(String aKey, Object aObject) Maps the specified key to the specified object.voidremoveChildWMSLayer(ALcdWMSLayer aChildWMSLayer) Removes a child from this layer.voidremoveDimension(ALcdWMSDimension aDimension) Removes the givenALcdWMSDimensionfrom thisALcdWMSLayer.voidsetAbstract(String aAbstract) Sets the abstract for this layer.voidsetFixedHeight(int aFixedHeight) Sets the fixed height of this layer.voidsetFixedWidth(int aFixedWidth) Sets the fixed width of this layer.voidsetLatLonBoundingBox(ILcdBounds aLatLonBoundingBox) Sets the lonlatbounds (WGS 84) of the layer.voidsetMaxScaleDenominator(double aMaxScaleDenominator) Sets the maximum scale denominator value.voidsetMinScaleDenominator(double aMinScaleDenominator) Sets the minimum scale denominator value.voidSets the name of the layer.voidsetNameVisible(boolean aNameVisible) Sets if the name is visible or not.voidsetNoSubsets(boolean aNoSubsets) Sets the value of the 'noSubsets' parameter of this layer.voidSets whether the layer is opaque or not.voidsetQueryable(boolean aQueryable) Sets whether the layer is queryable or not.voidsetSourceName(String aSourceName) Sets the sourcename of the layer.voidSets the title of the layer.Methods inherited from class com.luciad.wms.server.model.ALcdWMSLayer
getCascadeCount, getExpiryDate, getModificationDate, getParentWMSLayer, getUpdateSequence, setExpiryDate, setModificationDate, setParentLayer, setUpdateSequence
-
Constructor Details
-
TLcdWMSLayer
public TLcdWMSLayer()
-
-
Method Details
-
getTitle
Description copied from class:ALcdWMSLayerReturns the title of this layer.- Specified by:
getTitlein classALcdWMSLayer- Returns:
- the title of this layer.
-
getName
Description copied from class:ALcdWMSLayerReturns the name of this layer. This name has to be unique !- Specified by:
getNamein classALcdWMSLayer- Returns:
- the name of this layer.
-
isNameVisible
public boolean isNameVisible()Description copied from class:ALcdWMSLayerEach layer has a key, but this might not be visible to the WMS user (if the implementor of the WMS service does not want the layer to be retrievable).- Specified by:
isNameVisiblein classALcdWMSLayer- Returns:
- true if the name is visible, else false .
-
getWGS84LonLatBounds
Description copied from class:ALcdWMSLayerReturns the bounding box of this layer in WGS84.- Specified by:
getWGS84LonLatBoundsin classALcdWMSLayer- Returns:
- a
ILcdBoundscontaining the lon lat bounding box.
-
isQueryable
public boolean isQueryable()Description copied from class:ALcdWMSLayerReturns if the layer has extra (meta) information available. If thequeryableproperty has the valuefalseclient applications cannot makeGetFeatureInforequests on this WMS layer.- Specified by:
isQueryablein classALcdWMSLayer- Returns:
- true if the layer is queryable.
-
isOpaque
Description copied from class:ALcdWMSLayerReturns whether the layer represents map data that is mostly or completely opaque. If false, the layer typically represents vector data that does not completely fills space. By default,nullis returned.- Overrides:
isOpaquein classALcdWMSLayer- Returns:
Boolean.TRUEif the layer represents map data that is mostly or completely opaque.
-
getChildWMSLayerCount
public int getChildWMSLayerCount()Description copied from class:ALcdWMSLayerReturns the number of sub-layers this layer is composed of.- Specified by:
getChildWMSLayerCountin classALcdWMSLayer- Returns:
- the number of sub-layers this layer is composed of.
-
getChildWMSLayer
Description copied from class:ALcdWMSLayerReturns the sub-layer at an index.- Specified by:
getChildWMSLayerin classALcdWMSLayer- Parameters:
aIndex- the index of the sub-layer.- Returns:
- the sub-layer at an index.
- Throws:
IndexOutOfBoundsException- in case of an invalid index.
-
getSourceName
Description copied from class:ALcdWMSLayerReturns the source name of the data for this layer. This is OPTIONAL: the value returned may be null.- Specified by:
getSourceNamein classALcdWMSLayer- Returns:
- the source name of the data for this layer.
-
getAuthorityURLCount
public int getAuthorityURLCount()Description copied from class:ALcdWMSLayerReturns the number ofALcdWMSAuthorityURLobjects specified within thisALcdWMSLayer.- Specified by:
getAuthorityURLCountin classALcdWMSLayer- Returns:
- the number of
ALcdWMSAuthorityURLobjects specified within thisALcdWMSLayer.
-
getAuthorityURL
Description copied from class:ALcdWMSLayerReturns theALcdWMSAuthorityURLat a given index.- Specified by:
getAuthorityURLin classALcdWMSLayer- Parameters:
aIndex- the index of theALcdWMSAuthorityURL.- Returns:
- the
ALcdWMSAuthorityURLat a given index. - Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
addAuthorityURL
Adds a newALcdWMSAuthorityURLto thisALcdWMSLayer. It can be referred to by thisALcdWMSLayerand its children.- Parameters:
aAuthorityURL- the authority URL to add.
-
getMetadataURLCount
public int getMetadataURLCount()Description copied from class:ALcdWMSLayerReturns the number ofTLcdWMSURLobjects representing MetadataURLs. By default, 0 is returned.- Overrides:
getMetadataURLCountin classALcdWMSLayer- Returns:
- the number of
TLcdWMSURLobjects representing MetadataURLs.
-
getMetadataURL
Description copied from class:ALcdWMSLayerReturns theTLcdWMSURLrepresenting a MetadataURL at the given index. By default, no MetaDataURLs are available and anIndexOutOfBoundsExceptionwill be thrown.- Overrides:
getMetadataURLin classALcdWMSLayer- Parameters:
aIndex- the index of theTLcdWMSURLrepresenting a MetadataURL.- Returns:
- the
TLcdWMSURLrepresenting a MetadataURL at the given index. - Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
addMetadataURL
Adds a newTLcdWMSURLrepresenting a MetadataURL to thisALcdWMSLayer. It can be referred to by thisALcdWMSLayerand its children.- Parameters:
aMetadataURL- theTLcdWMSURLrepresenting a MetadataURL to add.
-
getDataURLCount
public int getDataURLCount()Description copied from class:ALcdWMSLayerReturns the number ofTLcdWMSURLobjects representing DataURLs. By default, 0 is returned.- Overrides:
getDataURLCountin classALcdWMSLayer- Returns:
- the number of
TLcdWMSURLobjects representing DataURLs.
-
getDataURL
Description copied from class:ALcdWMSLayerReturns theTLcdWMSURLrepresenting a DataURL at the given index. By default, no DataURLs are available and anIndexOutOfBoundsExceptionwill be thrown.- Overrides:
getDataURLin classALcdWMSLayer- Parameters:
aIndex- the index of theTLcdWMSURLrepresenting a DataURL.- Returns:
- the
TLcdWMSURLrepresenting a DataURL at the given index. - Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
addDataURL
Adds a newTLcdWMSURLrepresenting a DataURL to thisALcdWMSLayer. It can be referred to by thisALcdWMSLayerand its children.- Parameters:
aDataURL- theTLcdWMSURLrepresenting a DataURL to add.
-
getFeatureListURLCount
public int getFeatureListURLCount()Description copied from class:ALcdWMSLayerReturns the number ofTLcdWMSURLobjects representing FeatureListURLs. By default, 0 is returned.- Overrides:
getFeatureListURLCountin classALcdWMSLayer- Returns:
- the number of
TLcdWMSURLobjects representing FeatureListURLs.
-
getFeatureListURL
Description copied from class:ALcdWMSLayerReturns theTLcdWMSURLrepresenting a FeatureListURL at the given index. By default, no FeatureListURLs are available and anIndexOutOfBoundsExceptionwill be thrown.- Overrides:
getFeatureListURLin classALcdWMSLayer- Parameters:
aIndex- the index of theTLcdWMSURLrepresenting a FeatureListURL.- Returns:
- the
TLcdWMSURLrepresenting a FeatureListURL at the given index. - Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
addFeatureListURL
Adds a newTLcdWMSURLrepresenting a FeatureListURL to thisALcdWMSLayer. It can be referred to by thisALcdWMSLayerand its children.- Parameters:
aFeatureListURL- theTLcdWMSURLrepresenting a FeatureListURL to add.
-
getIdentifierCount
public int getIdentifierCount()Description copied from class:ALcdWMSLayerReturns the number ofTLcdWMSIdentifierof thisALcdWMSLayer.- Specified by:
getIdentifierCountin classALcdWMSLayer- Returns:
- the number of
TLcdWMSIdentifierof thisALcdWMSLayer.
-
getIdentifier
Description copied from class:ALcdWMSLayerReturns theTLcdWMSIdentifierat a given index.- Specified by:
getIdentifierin classALcdWMSLayer- Parameters:
aIndex- the index of theTLcdWMSIdentifier.- Returns:
- the
TLcdWMSIdentifierat a given index. - Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
addIdentifier
Adds aTLcdWMSIdentifierto thisALcdWMSLayer. It is not inherited from the parentALcdWMSLayer. The authority name of the Identifier should be defined within thisALcdWMSLayeror one of its ancestors.- Parameters:
aIdentifier- the identifier object.
-
getDimensionCount
public int getDimensionCount()Description copied from class:ALcdWMSLayerReturns the number of dimensional parameters associated with this layer (and child layers). By default, 0 is returned.- Overrides:
getDimensionCountin classALcdWMSLayer- Returns:
- the number of dimensional parameters associated with this layer (and child layers).
-
getDimension
Description copied from class:ALcdWMSLayerReturns the dimensional parameter definition at the given index. By default, no dimensional parameters are available and anIndexOutOfBoundsExceptionwill be thrown.- Overrides:
getDimensionin classALcdWMSLayer- Parameters:
aIndex- The index of the dimensional parameter to be retrieved.- Returns:
- the dimensional parameter definition at the given index.
- Throws:
IndexOutOfBoundsException- if invalid index.
-
addDimension
Adds aALcdWMSDimensionto thisALcdWMSLayer.- Parameters:
aDimension- the dimensional parameter to add.
-
removeDimension
Removes the givenALcdWMSDimensionfrom thisALcdWMSLayer.- Parameters:
aDimension- the dimensional parameter to remove.
-
setTitle
Sets the title of the layer.- Parameters:
aTitle- aStringcontaining the title.- See Also:
-
setName
Sets the name of the layer.- Parameters:
aName- aStringcontaining the name.- See Also:
-
setNameVisible
public void setNameVisible(boolean aNameVisible) Sets if the name is visible or not.- Parameters:
aNameVisible- abooleanchanging the name visibility.
-
getAbstract
Description copied from class:ALcdWMSLayerReturns an abstract for this layer. Value may be null.- Specified by:
getAbstractin classALcdWMSLayer- Returns:
- an abstract for this layer.
-
setAbstract
Sets the abstract for this layer.- Parameters:
aAbstract- the abstract of this layer.- See Also:
-
setLatLonBoundingBox
Sets the lonlatbounds (WGS 84) of the layer.- Parameters:
aLatLonBoundingBox- aILcdBoundscontaining the lonlatbounds.- See Also:
-
setQueryable
public void setQueryable(boolean aQueryable) Sets whether the layer is queryable or not.- Parameters:
aQueryable- abooleanindicating whether the layer is queryable or not.
-
setOpaque
Sets whether the layer is opaque or not.- Parameters:
aOpaque- aBooleanindicating whether the layer is opaque or not.
-
addChildWMSLayer
Adds a child to this layer. This layer will automatically be registered as the parent layer of the child.- Parameters:
aChildWMSLayer- anALcdWMSLayerthat is a child of this layer.
-
removeChildWMSLayer
Removes a child from this layer. This layer will automatically be removed as parent layer of the child.- Parameters:
aChildWMSLayer- anALcdWMSLayerthat is a child of this layer.
-
moveLayerAt
Moves a child layer to a different position in the list.- Parameters:
aChildWMSLayer- anALcdWMSLayerthat is a child of this layer.aIndex- the new list index to which the child layer should be moved.
-
getChildWMSLayerIndex
Returns the index of a child layer in the list.- Parameters:
aLayer- anALcdWMSLayer.- Returns:
- the index of the specified layer in the list, or -1 if the layer is not found.
-
setSourceName
Sets the sourcename of the layer.- Parameters:
aSourceName- aStringcontaining the source name.- See Also:
-
getWMSLayerStyleCount
public int getWMSLayerStyleCount()Description copied from class:ALcdWMSLayerReturns the number of new styles this layer defines.- Specified by:
getWMSLayerStyleCountin classALcdWMSLayer- Returns:
- the number of new styles this layer defines.
-
getWMSLayerStyle
Description copied from class:ALcdWMSLayerReturns one of the new styles defined by this layer (for the specific index).- Specified by:
getWMSLayerStylein classALcdWMSLayer- Parameters:
aIndex- index of the new style to return.- Returns:
- one of the new styles defined by this layer (for the specific index).
- Throws:
IndexOutOfBoundsException- in case of an invalid index.
-
addStyle
Adds a style for thisALcdWMSLayerand its children.- Parameters:
aWMSStyle- an additional style for thisALcdWMSLayerand its children.
-
putProperty
Description copied from class:ALcdWMSLayerMaps the specified key to the specified object.- Specified by:
putPropertyin classALcdWMSLayer- Parameters:
aKey- the key to use for the property list.aObject- the value corresponding to the key.
-
getProperty
Description copied from class:ALcdWMSLayerSearches the property with the specified key. If not found null is returned.- Specified by:
getPropertyin classALcdWMSLayer- Parameters:
aKey- the key to search for.- Returns:
- the value of the property with the specified key, null if not found.
-
getProperty
Description copied from class:ALcdWMSLayerSearches the property with the specified key. If not found the default value is returned.- Specified by:
getPropertyin classALcdWMSLayer- Parameters:
aKey- the key to search for.aDefaultValue- the default value to return if no property is found with the specified key.- Returns:
- the value of the property with the specified key. The default specified value if not found.
-
getCoordinateReferenceSystemCount
public int getCoordinateReferenceSystemCount()Description copied from class:ALcdWMSLayerReturns the number of extra coordinate reference systems in which this layer can be displayed.- Specified by:
getCoordinateReferenceSystemCountin classALcdWMSLayer- Returns:
- the number of extra coordinate reference systems in which this layer can be displayed.
-
getCoordinateReferenceSystem
Description copied from class:ALcdWMSLayerReturns the extra coordinate reference system in which this layer can be displayed.- Specified by:
getCoordinateReferenceSystemin classALcdWMSLayer- Parameters:
aIndex- the index of the extra coordinate reference system.- Returns:
- the extra coordinate reference system in which this layer can be displayed.
- Throws:
IndexOutOfBoundsException- if the index value is invalid.
-
addCoordinateReferenceSystem
Adds an extra coordinate reference system in which this layer can be visualized.- Parameters:
aCoordinateReferenceSystem- the coordinate reference system to add (formatted as a string).
-
addBoundingBox
public void addBoundingBox(String aCoordinateReferenceSystem, ILcdBounds aBoundsForCRS) throws IllegalArgumentException Registers the bounding box for an extra coordinate reference system in which this layer can be visualized.- Parameters:
aCoordinateReferenceSystem- the extra coordinate reference system in which this layer can be visualized.aBoundsForCRS- the bounding box for an extra coordinate reference system in which this layer can be visualized.- Throws:
IllegalArgumentException- If the extra coordinate reference system has not been added.- Since:
- 2025.0
- See Also:
-
getBoundingBox
Description copied from class:ALcdWMSLayerReturns the bounding box of this layer in the extra coordinate reference, if it has been provided.- Specified by:
getBoundingBoxin classALcdWMSLayer- Parameters:
aCoordinateReferenceSystem- the extra coordinate reference.- Returns:
- the bounding box of this layer in the extra coordinate reference, if it has been provided.
-
getMinScaleDenominator
public double getMinScaleDenominator()Description copied from class:ALcdWMSLayerReturns the min scale denominator range value. If there is no such minimum scale condition, the default value has to be 0.- Specified by:
getMinScaleDenominatorin classALcdWMSLayer- Returns:
- the min scale denominator range value.
-
setMinScaleDenominator
public void setMinScaleDenominator(double aMinScaleDenominator) Sets the minimum scale denominator value.- Parameters:
aMinScaleDenominator- the new min scale denominator value.- See Also:
-
getMaxScaleDenominator
public double getMaxScaleDenominator()Description copied from class:ALcdWMSLayerReturns the max scale denominator range value. If there is no such maximum scale condition, the default value has to be Double.POSITIVE_INFINITY.- Specified by:
getMaxScaleDenominatorin classALcdWMSLayer- Returns:
- the max scale denominator range value.
-
setMaxScaleDenominator
public void setMaxScaleDenominator(double aMaxScaleDenominator) Sets the maximum scale denominator value.- Parameters:
aMaxScaleDenominator- the new max scale denominator value.- See Also:
-
getKeywordCount
public int getKeywordCount()Description copied from class:ALcdWMSLayerReturns the number of keywords.- Specified by:
getKeywordCountin classALcdWMSLayer- Returns:
- the number of keywords.
-
getKeyword
Description copied from class:ALcdWMSLayerReturns the keyword at the given index.- Specified by:
getKeywordin classALcdWMSLayer- Parameters:
aIndex- the index of the keyword to return.- Returns:
- the keyword at the given index.
- Throws:
IndexOutOfBoundsException- if invalid index.
-
addKeyword
Adds a keyword for this layer.- Parameters:
aKeyword- A keyword for this layer.
-
setNoSubsets
public void setNoSubsets(boolean aNoSubsets) Sets the value of the 'noSubsets' parameter of this layer. If 'noSubsets' is set, the server is not able to make a map of a geographic area other than this layer's bounding box.- Parameters:
aNoSubsets- the new boolean value for the 'noSubsets' parameter.
-
setFixedWidth
public void setFixedWidth(int aFixedWidth) Sets the fixed width of this layer. If this value is different from 0, the server can only produce maps with the given width for this layer.- Parameters:
aFixedWidth- A positive value for the fixed width, 0 if the layer has no fixed width.
-
setFixedHeight
public void setFixedHeight(int aFixedHeight) Sets the fixed height of this layer. If this value is different from 0, the server can only produce maps with the given height for this layer.- Parameters:
aFixedHeight- A positive value for the fixed height, 0 if the layer has no fixed height.
-
isNoSubsets
public boolean isNoSubsets()Description copied from class:ALcdWMSLayerReturns the value of the 'noSubsets' parameter of this layer. If 'noSubsets' is set, the server is not able to make a map of a geographic area other than this layer's bounding box.- Overrides:
isNoSubsetsin classALcdWMSLayer- Returns:
- The value of the 'noSubsets' parameter. Defaults to false.
-
getFixedWidth
public int getFixedWidth()Description copied from class:ALcdWMSLayerReturns the fixed width of this layer. If this value is different from 0, the server can only produce maps with the given width for this layer.- Overrides:
getFixedWidthin classALcdWMSLayer- Returns:
- The fixed width of this layer if it is set, 0 otherwise.
-
getFixedHeight
public int getFixedHeight()Description copied from class:ALcdWMSLayerReturns the fixed height of this layer. If this value is different from 0, the server can only produce maps with the given height for this layer.- Overrides:
getFixedHeightin classALcdWMSLayer- Returns:
- The fixed height of this layer if it is set, 0 otherwise.
-
findWMSLayer
Description copied from class:ALcdWMSLayerSearch for a layer in the hierarchy with the requested layer name.- Overrides:
findWMSLayerin classALcdWMSLayer- Parameters:
aLayerName- the name of the layer searched for.- Returns:
- The layer if found,
nullotherwise.
-