Package com.luciad.wms.client.model
Class ALcdWMSNamedLayer
java.lang.Object
com.luciad.wms.client.model.ALcdWMSNamedLayer
A named layer is a layer being published by a Web Map Server (WMS).
It has a name which uniquely identifies the layer and which is to
be used when requesting the WMS. The name returned may be null if
this
ALcdWMSNamedLayer
cannot be requested immediately.
The human readable name is the title.
The named layer may have child named layers.
This class corresponds to the WMS Layer concept from [WMS 1.1.1], pages 24-31.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
Returns the number of times this layer has been retransmitted by a Cascading Web Map Server.abstract ALcdWMSNamedLayer
getChildWMSNamedLayer
(int aIndex) Returns the child named layer at a given index.abstract int
Returns the number of children of this named layer.getDataURL
(int aIndex) Returns theTLcdOGCWMSURL
representing a DataURL at the given index.int
Returns the number ofTLcdOGCWMSURL
objects representing DataURLs.getDimension
(int aIndex) Returns the dimensional parameter definition at the given index.int
Returns the number of dimensional parameters associated with this layer.getFeatureListURL
(int aIndex) Returns theTLcdOGCWMSURL
representing a FeatureListURL at the given index.int
Returns the number ofTLcdOGCWMSURL
objects representing FeatureListURLs.int
Returns the fixed height of this layer.int
Returns the fixed width of this layer.abstract String
getIdentifierValue
(String aAuthorityName) Returns the identifier value for a specific authority (name).abstract String
getKeyword
(int aIndex) Returns the keyword at a given index.abstract int
Returns the number of keywords for this layer.abstract ALcdWMSNamedLayerStyle
getLocalNamedLayerStyle
(int aIndex) Returns the local named layer style at an index.abstract int
Returns the number of new styles defined by this layer.abstract String
getLocalSupportedCRS
(int aIndex) Returns the new supported coordinate reference system (CRS) at the specified index.abstract int
Returns the number of new supported coordinate reference systems (CRS) for this layer.abstract double
Returns the maximum scale denominator of this layer.getMetadataURL
(int aIndex) Returns theTLcdOGCWMSURL
representing a MetadataURL at the given index.int
Returns the number ofTLcdOGCWMSURL
objects representing MetadataURLs.abstract double
Returns the minimum scale denominator of this layer.abstract String
Returns the abstract for this named layer.abstract String
Returns the UID.abstract ALcdWMSNamedLayerStyle
getNamedLayerStyle
(int aIndex) Returns the named layer style at the specified index.abstract int
Returns the number of named layer styles published for this layer.abstract String
Returns the title of thisALcdWMSNamedLayer
.Returns the parent named layer of this layer, ornull
if there is no parent layer.abstract String
getSupportedCRS
(int aIndex) Returns the supported coordinate reference system (CRS) at the specified index.abstract int
Returns the number of supported coordinate reference systems (CRS) for this layer.abstract ILcdBounds
Returns the bounds of this named layer.boolean
Returns the value of the 'noSubsets' parameter of this layer.isOpaque()
Returns whether the layer represents an area-filling coverage.abstract boolean
Returns true if this layer can be queried.boolean
isSupportedCRS
(String aCRS) Returns whether the coordinate reference system (CRS) is supported.
-
Constructor Details
-
ALcdWMSNamedLayer
public ALcdWMSNamedLayer()
-
-
Method Details
-
getNamedLayerTitle
Returns the title of thisALcdWMSNamedLayer
. It is a human readable string for presentation in a menu.- Returns:
- the title of this
ALcdWMSNamedLayer
.
-
getNamedLayerName
Returns the UID. Its value may be null if it is not possible to request this layer as such from the WMS.- Returns:
- the UID as string.
-
getNamedLayerAbstract
Returns the abstract for this named layer. Abstract is a narrative description of the map layer.- Returns:
- the abstract for this named layer.
-
getChildWMSNamedLayerCount
public abstract int getChildWMSNamedLayerCount()Returns the number of children of this named layer.- Returns:
- the number of children of this named layer.
-
getChildWMSNamedLayer
public abstract ALcdWMSNamedLayer getChildWMSNamedLayer(int aIndex) throws IndexOutOfBoundsException Returns the child named layer at a given index.- Parameters:
aIndex
- the index of the child named layer to return.- Returns:
- the child named layer at a given index.
- Throws:
IndexOutOfBoundsException
- if the given index outside the array index bounds.
-
getWGS84LonLatBounds
Returns the bounds of this named layer. The bounds is specified in WGS 84 bounds.- Returns:
- the
ILcdBounds
within the WGS 84 reference.
-
getIdentifierValue
Returns the identifier value for a specific authority (name).- Parameters:
aAuthorityName
- the authority name of the identifier.- Returns:
- the identifier value for a specific authority (name). May be
null
.
-
isQueryable
public abstract boolean isQueryable()Returns true if this layer can be queried.- Returns:
- true if this layer can be queried.
-
isOpaque
Returns whether the layer represents an area-filling coverage. If this property is absent or false, then maps made from this layer will generally have significant no-data areas (e.g. vector data). By default,null
is returned.- Returns:
Boolean.TRUE
if the layer represents map data that is mostly or completely opaque.
-
getMinScaleDenominator
public abstract double getMinScaleDenominator()Returns the minimum scale denominator of this layer. The minimum and maximum scale denominator values define the scale range for which a layer is appropriate.- Returns:
- the minimum scale denominator of this layer.
- See Also:
-
getMaxScaleDenominator
public abstract double getMaxScaleDenominator()Returns the maximum scale denominator of this layer. The minimum and maximum scale denominator values define the scale range for which a layer is appropriate.- Returns:
- the maximum scale denominator of this layer.
- See Also:
-
getLocalNamedLayerStyleCount
public abstract int getLocalNamedLayerStyleCount()Returns the number of new styles defined by this layer.- Returns:
- the number of new styles defined by this layer.
-
getLocalNamedLayerStyle
public abstract ALcdWMSNamedLayerStyle getLocalNamedLayerStyle(int aIndex) throws IndexOutOfBoundsException Returns the local named layer style at an index.- Parameters:
aIndex
- the index of the style.- Returns:
- the local named layer style at an index.
- Throws:
IndexOutOfBoundsException
- if the index is invalid.
-
getNamedLayerStyleCount
public abstract int getNamedLayerStyleCount()Returns the number of named layer styles published for this layer. This includes the named layer styles defined by its ancestors.- Returns:
- the number of named layer styles published for this layer.
-
getNamedLayerStyle
public abstract ALcdWMSNamedLayerStyle getNamedLayerStyle(int aIndex) throws IndexOutOfBoundsException Returns the named layer style at the specified index.- Parameters:
aIndex
- the index of the named layer style.- Returns:
- the named layer style at the specified index.
- Throws:
IndexOutOfBoundsException
- if the index is invalid.
-
getDimensionCount
public int getDimensionCount()Returns the number of dimensional parameters associated with this layer. By default, 0 is returned.- Returns:
- the number of dimensional parameters associated with this layer.
-
getDimension
Returns the dimensional parameter definition at the given index. By default, no dimensional parameters are available and anIndexOutOfBoundsException
will be thrown.- 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.
-
getMetadataURLCount
public int getMetadataURLCount()Returns the number ofTLcdOGCWMSURL
objects representing MetadataURLs. By default, 0 is returned.- Returns:
- the number of
TLcdOGCWMSURL
objects representing MetadataURLs.
-
getMetadataURL
Returns theTLcdOGCWMSURL
representing a MetadataURL at the given index. By default, no MetadataURLs are available and anIndexOutOfBoundsException
will be thrown.- Parameters:
aIndex
- the index of theTLcdOGCWMSURL
representing a MetadataURL.- Returns:
- the
TLcdOGCWMSURL
representing a MetadataURL at the given index. - Throws:
IndexOutOfBoundsException
- if the index value is invalid.
-
getDataURLCount
public int getDataURLCount()Returns the number ofTLcdOGCWMSURL
objects representing DataURLs. By default, 0 is returned.- Returns:
- the number of
TLcdOGCWMSURL
objects representing DataURLs.
-
getDataURL
Returns theTLcdOGCWMSURL
representing a DataURL at the given index. By default, no DataURLs are available and anIndexOutOfBoundsException
will be thrown.- Parameters:
aIndex
- the index of theTLcdOGCWMSURL
representing a DataURL.- Returns:
- the
TLcdOGCWMSURL
representing a DataURL at the given index. - Throws:
IndexOutOfBoundsException
- if the index value is invalid.
-
getFeatureListURLCount
public int getFeatureListURLCount()Returns the number ofTLcdOGCWMSURL
objects representing FeatureListURLs. By default, 0 is returned.- Returns:
- the number of
TLcdOGCWMSURL
objects representing FeatureListURLs.
-
getFeatureListURL
Returns theTLcdOGCWMSURL
representing a FeatureListURL at the given index. By default, no FeatureListURLs are available and anIndexOutOfBoundsException
will be thrown.- Parameters:
aIndex
- the index of theTLcdOGCWMSURL
representing a FeatureListURL.- Returns:
- the
TLcdOGCWMSURL
representing a FeatureListURL at the given index. - Throws:
IndexOutOfBoundsException
- if the index value is invalid.
-
getParentNamedLayer
Returns the parent named layer of this layer, ornull
if there is no parent layer. By default,null
is returned.- Returns:
- the parent named layer of this layer.
-
getLocalSupportedCRSCount
public abstract int getLocalSupportedCRSCount()Returns the number of new supported coordinate reference systems (CRS) for this layer.- Returns:
- the number of new supported coordinate reference systems (CRS) for this layer.
-
getLocalSupportedCRS
Returns the new supported coordinate reference system (CRS) at the specified index.- Parameters:
aIndex
- the index of the new CRS.- Returns:
- the new supported coordinate reference system (CRS) at the specified index.
- Throws:
IndexOutOfBoundsException
- if the index is invalid.
-
getSupportedCRSCount
public abstract int getSupportedCRSCount()Returns the number of supported coordinate reference systems (CRS) for this layer.- Returns:
- the number of supported coordinate reference systems (CRS) for this layer.
-
getSupportedCRS
Returns the supported coordinate reference system (CRS) at the specified index.- Parameters:
aIndex
- the index of the CRS.- Returns:
- the supported coordinate reference system (CRS) at the specified index.
- Throws:
IndexOutOfBoundsException
- if the index is invalid.
-
isSupportedCRS
Returns whether the coordinate reference system (CRS) is supported. There are the coordinate reference systems that are advertised by the Web Map Server (WMS) for this layer. The response of this method must take the CRSes defined in parent layers into account.- Parameters:
aCRS
- the CRS to check for if it is included.- Returns:
- whether the CRS is supported.
- Since:
- 2017.0.08
- See Also:
-
getCascadeCount
public abstract int getCascadeCount()Returns the number of times this layer has been retransmitted by a Cascading Web Map Server.- Returns:
- the number of times this layer has been retransmitted by a Cascading Web Map Server.
-
getKeywordCount
public abstract int getKeywordCount()Returns the number of keywords for this layer.- Returns:
- the number of keywords for this layer.
-
getKeyword
Returns the keyword at a given index.- Parameters:
aIndex
- the index of the keyword.- Returns:
- the keyword at a given index.
- Throws:
IndexOutOfBoundsException
- if the index is invalid.
-
isNoSubsets
public boolean isNoSubsets()Returns 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.- Returns:
- The value of the 'noSubsets' parameter. Defaults to false.
-
getFixedWidth
public int getFixedWidth()Returns 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.- Returns:
- The fixed width of this layer if it is set, 0 otherwise.
-
getFixedHeight
public int getFixedHeight()Returns 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.- Returns:
- The fixed height of this layer if it is set, 0 otherwise.
-