You can obtain a WmsLayerInfo
from the WmsServiceInfo.getLayerInfos()
collection of a loaded WmsService
.
- Since:
- 100.2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets a brief narrative description (abstract) of this WMS layer.Gets the approximate bounds of the area covered by the WMS layer.int
Gets the height of map images the service is capable of producing (in pixels).int
Gets a value indicating the width of maps the service is capable of producing (in pixels).Gets an unordered collection of commonly used or formalized words or phrases which describe the layer's dataset.getName()
Gets the layer's uniquely-identifying name.Gets an unordered collection of spatial references supported by the layer.Gets a collection of WMS styles that can be applied to this layer.Gets the collection ofWmsLayerInfo
of the WMSLayer.getTitle()
Gets the layer's human-readable title.boolean
isOpaque()
Gets whether theWmsLayer
content should be considered opaque.boolean
Gets whether the WMS layer is queryable.
-
Method Details
-
getDescription
Gets a brief narrative description (abstract) of this WMS layer.- Returns:
- the description of the layer
- Since:
- 100.2.0
-
getExtent
Gets the approximate bounds of the area covered by the WMS layer.- Returns:
- the extent of the layer
- Since:
- 100.2.0
-
getFixedImageHeight
public int getFixedImageHeight()Gets the height of map images the service is capable of producing (in pixels).If the value is nonzero, this indicates that the server can only produce map images at the fixed height. If the value is zero, the server can produce maps of arbitrary dimensions.
- Returns:
- the fixed height in pixels, or 0 if the height is not fixed
- Since:
- 100.2.0
- See Also:
-
getFixedImageWidth
public int getFixedImageWidth()Gets a value indicating the width of maps the service is capable of producing (in pixels).If the value is nonzero, this indicates that the server can only produce map images at the fixed width. If the value is zero, the server can produce maps of arbitrary dimensions.
- Returns:
- the fixed width in pixels, or 0 if the width is not fixed
- Since:
- 100.2.0
- See Also:
-
getKeywords
Gets an unordered collection of commonly used or formalized words or phrases which describe the layer's dataset.- Returns:
- an unordered collection of commonly used or formalized words or phrases which describe the layer's dataset
- Since:
- 100.2.0
-
getName
Gets the layer's uniquely-identifying name.A WMS layer can be displayed if it has a name. If the WMS layer has a name, its sublayers (
getSublayerInfos()
) are displayed if the WMS layer is displayed. If the WMS layer does not have a name but has a title, it is just a category for other sublayers.- Returns:
- the name of the layer
- Since:
- 100.2.0
- See Also:
-
isOpaque
public boolean isOpaque()Gets whether theWmsLayer
content should be considered opaque.The WMS layer opaque property describes the layer's data content, not the picture format of the map response. A true value indicates that map data are mostly or completely opaque. A false value indicates that map data represent vector features that probably do not completely fill space. In practice, a layer with opaque set to true is a good candidate for use as a basemap.
- Returns:
- true if the layer's content is mostly or completely opaque; false otherwise
- Since:
- 100.2.0
-
isQueryable
public boolean isQueryable()Gets whether the WMS layer is queryable.- Returns:
- true if the layer is queryable; false otherwise
- Since:
- 100.2.0
-
getSpatialReferences
Gets an unordered collection of spatial references supported by the layer.Spatial reference systems not supported by this API are omitted. Spatial references with multiple well-known IDs, such as CRS:84 and EPSG:4326, may appear multiple times. The collection may be empty.
- Returns:
- an unordered collection of spatial references supported by the layer
- Since:
- 100.2.0
-
getStyles
Gets a collection of WMS styles that can be applied to this layer.Styles are server-defined options for how the layer and its information are displayed. Note that the order of styles returned does not indicate which style is the default. Styles can be applied using
WmsSublayer.setCurrentStyle(String)
.- Returns:
- a collection of WMS styles that can be applied to this layer
- Since:
- 100.2.0
-
getSublayerInfos
Gets the collection ofWmsLayerInfo
of the WMSLayer.- Returns:
- an unmodifiable list of WmsLayerInfo objects
- Since:
- 100.2.0
-
getTitle
Gets the layer's human-readable title.The title is intended for use as a human-readable layer identification. The title is not unique. Note also that a layer with a title but no name describes a category for use as a container for sublayers.
- Returns:
- the title of the layer
- Since:
- 100.2.0
- See Also:
-