public class WmsTileFactory extends java.lang.Object implements TileFactory
Constructor and Description |
---|
WmsTileFactory(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.
|
WmsTileFactory(WmsLayerConfig config)
Constructs a level set with a specified configuration.
|
Modifier and Type | Method and Description |
---|---|
Tile |
createTile(Sector sector,
Level level,
int row,
int column)
Returns a tile for a specified sector, level within a
LevelSet , and row and column within that level. |
java.lang.String |
getCoordinateSystem()
Indicates the coordinate reference system to use in Get Map URLs.
|
java.lang.String |
getImageFormat()
Indicates the image content type to use in Get Map URLs, or null in which case the default format is assumed.
|
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 |
setImageFormat(java.lang.String imageFormat)
Sets the image content type 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(Sector sector,
int width,
int height) |
public WmsTileFactory(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 WmsTileFactory(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 java.lang.String getImageFormat()
public void setImageFormat(java.lang.String imageFormat)
imageFormat
- the image content type to usepublic 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 Tile createTile(Sector sector, Level level, int row, int column)
TileFactory
LevelSet
, and row and column within that level.createTile
in interface TileFactory
sector
- the sector spanned by the tilelevel
- the level at which the tile lies within a LevelSetrow
- the row within the specified levelcolumn
- the column within the specified levelpublic java.lang.String urlForTile(Sector sector, int width, int height)