public class WmsGetMapUrlFactory extends java.lang.Object implements TileUrlFactory
Constructor and Description |
---|
WmsGetMapUrlFactory(java.lang.String serviceAddress,
java.lang.String wmsVersion,
java.lang.String layerNames,
java.lang.String styleNames)
Constructs a WMS Get Map URL builder with specified WMS service parameters.
|
WmsGetMapUrlFactory(WmsLayerConfig config)
Constructs a level set with a specified configuration.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCoordinateSystem()
Indicates the coordinate reference system to use in Get Map URLs.
|
java.lang.String |
getLayerNames()
Indicates the comma-separated list of WMS layer names.
|
java.lang.String |
getServiceAddress()
Indicates the WMS service address used to build Get Map URLs.
|
java.lang.String |
getStyleNames()
Indicates the comma-separated list of WMS style names, or null in which case the default style is assumed.
|
java.lang.String |
getTimeString()
Indicates the time parameter to include in Get Map URLs, or null in which case no time parameter is included.
|
java.lang.String |
getWmsVersion()
Indicates the WMS protocol version.
|
boolean |
isTransparent()
Indicates whether Get Map URLs should include transparency.
|
void |
setCoordinateSystem(java.lang.String coordinateSystem)
Sets the coordinate reference system to use in Get Map URLs.
|
void |
setLayerNames(java.lang.String layerNames)
Sets the comma-separated list of WMS layer names.
|
void |
setServiceAddress(java.lang.String serviceAddress)
Sets the WMS service address used to build Get Map URLs.
|
void |
setStyleNames(java.lang.String styleNames)
Sets the comma-separated list of WMS style names.
|
void |
setTimeString(java.lang.String timeString)
Sets the time parameter to include in Get Map URLs.
|
void |
setTransparent(boolean transparent)
Sets whether Get Map URLs should include transparency.
|
void |
setWmsVersion(java.lang.String wmsVersion)
Sets the WMS protocol version.
|
java.lang.String |
urlForTile(Tile tile,
java.lang.String imageFormat)
Constructs the URL string associated with a specified tile and image format.
|
public WmsGetMapUrlFactory(java.lang.String serviceAddress, java.lang.String wmsVersion, java.lang.String layerNames, java.lang.String styleNames)
serviceAddress
- the WMS service addresswmsVersion
- the WMS protocol versionlayerNames
- comma-separated list of WMS layer namesstyleNames
- comma-separated list of WMS style names, may be null in which case the default style is
assumedjava.lang.IllegalArgumentException
- If any of the service address, the WMS protocol version, or the layer names are
nullpublic WmsGetMapUrlFactory(WmsLayerConfig config)
config
- the configuration for this URL builderjava.lang.IllegalArgumentException
- If the configuration is null, or if any configuration value is invalidpublic java.lang.String getServiceAddress()
public void setServiceAddress(java.lang.String serviceAddress)
serviceAddress
- the WMS service addressjava.lang.IllegalArgumentException
- if the service address is nullpublic java.lang.String getWmsVersion()
public void setWmsVersion(java.lang.String wmsVersion)
wmsVersion
- the WMS protocol versionjava.lang.IllegalArgumentException
- If the version is nullpublic java.lang.String getLayerNames()
public void setLayerNames(java.lang.String layerNames)
layerNames
- comma-separated list of WMS layer namesjava.lang.IllegalArgumentException
- if the layer names are nullpublic java.lang.String getStyleNames()
public void setStyleNames(java.lang.String styleNames)
styleNames
- comma-separated list of WMS style namespublic java.lang.String getCoordinateSystem()
public void setCoordinateSystem(java.lang.String coordinateSystem)
coordinateSystem
- the coordinate reference system to usejava.lang.IllegalArgumentException
- If the coordinate system is nullpublic boolean isTransparent()
public void setTransparent(boolean transparent)
transparent
- true to include transparency, false otherwisepublic java.lang.String getTimeString()
public void setTimeString(java.lang.String timeString)
timeString
- the time parameter to includepublic java.lang.String urlForTile(Tile tile, java.lang.String imageFormat)
TileUrlFactory
urlForTile
in interface TileUrlFactory
tile
- the tile for which to create the URLimageFormat
- an optional image format used to create the URL, may be null in which case a default image
format is used