public class WmsLayer extends RenderableLayer
setConfiguration
, and must
include the following values: service address, WMS protocol version, layer names, coordinate reference system, sector
and resolution. All other WMS configuration values may be unspecified, in which case a default value is used.
WmsLayer defaults to retrieving imagery in the PNG format. This may be configured by calling
setImageFormat
.Constructor and Description |
---|
WmsLayer()
Constructs an empty Web Map Service (WMS) layer that displays nothing.
|
WmsLayer(Sector sector,
double metersPerPixel,
WmsLayerConfig config)
Constructs a Web Map Service (WMS) layer with specified WMS layer configuration values.
|
WmsLayer(Sector sector,
Globe globe,
double metersPerPixel,
WmsLayerConfig config)
Constructs a Web Map Service (WMS) layer with specified WMS layer configuration values.
|
Modifier and Type | Method and Description |
---|---|
void |
setConfiguration(Sector sector,
double metersPerPixel,
WmsLayerConfig config)
Specifies this Web Map Service (WMS) layer's configuration.
|
void |
setConfiguration(Sector sector,
Globe globe,
double metersPerPixel,
WmsLayerConfig config)
Specifies this Web Map Service (WMS) layer's configuration.
|
addAllRenderables, addAllRenderables, addRenderable, addRenderable, clearRenderables, count, getRenderable, indexOfRenderable, indexOfRenderableNamed, indexOfRenderableWithProperty, iterator, removeAllRenderables, removeRenderable, removeRenderable, setRenderable
getDisplayName, getMaxActiveAltitude, getMinActiveAltitude, getOpacity, getUserProperty, hasUserProperty, isEnabled, isPickEnabled, isWithinActiveAltitudes, putUserProperty, removeUserProperty, render, setDisplayName, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setOpacity, setPickEnabled
public WmsLayer()
public WmsLayer(Sector sector, double metersPerPixel, WmsLayerConfig config)
sector
- the geographic region in which to display the WMS layermetersPerPixel
- the desired resolution in meters on Earthconfig
- the WMS layer configuration valuesjava.lang.IllegalArgumentException
- If any argument is null, if the resolution is not positive, or if any
configuration value is invalidpublic WmsLayer(Sector sector, Globe globe, double metersPerPixel, WmsLayerConfig config)
sector
- the geographic region in which to display the WMS layermetersPerPixel
- the desired resolution in meters on the specified globeconfig
- the WMS layer configuration valuesjava.lang.IllegalArgumentException
- If any argument is null, if the resolution is not positive, or if any
configuration value is invalidpublic void setConfiguration(Sector sector, double metersPerPixel, WmsLayerConfig config)
sector
- the geographic region in which to display the WMS layermetersPerPixel
- the desired resolution in meters on Earthconfig
- the WMS layer configuration valuespublic void setConfiguration(Sector sector, Globe globe, double metersPerPixel, WmsLayerConfig config)
sector
- the geographic region in which to display the WMS layermetersPerPixel
- the desired resolution in meters on the specified globeconfig
- the WMS layer configuration values