Package org.jxmapviewer.viewer.wms
Class WMSService
java.lang.Object
org.jxmapviewer.viewer.wms.WMSService
public class WMSService
extends java.lang.Object
A class that represents a WMS mapping service.
See http://en.wikipedia.org/wiki/Web_Map_Service for more information.
-
Constructor Summary
Constructors Constructor Description WMSService()Creates a new instance of WMSServiceWMSService(java.lang.String baseUrl, java.lang.String layer) -
Method Summary
Modifier and Type Method Description java.lang.StringgetBaseUrl()java.lang.StringgetLayer()voidsetBaseUrl(java.lang.String baseUrl)voidsetLayer(java.lang.String layer)java.lang.StringtoWMSURL(int x, int y, int zoom, int tileSize)Convertes to a WMS URL
-
Constructor Details
-
WMSService
public WMSService()Creates a new instance of WMSService -
WMSService
public WMSService(java.lang.String baseUrl, java.lang.String layer)- Parameters:
baseUrl- the base URLlayer- the layer
-
-
Method Details
-
toWMSURL
public java.lang.String toWMSURL(int x, int y, int zoom, int tileSize)Convertes to a WMS URL- Parameters:
x- the x coordinatey- the y coordinatezoom- the zomm factortileSize- the tile size- Returns:
- a URL request string
-
getLayer
public java.lang.String getLayer()- Returns:
- the layer
-
setLayer
public void setLayer(java.lang.String layer)- Parameters:
layer- the layer
-
getBaseUrl
public java.lang.String getBaseUrl()- Returns:
- the base URL
-
setBaseUrl
public void setBaseUrl(java.lang.String baseUrl)- Parameters:
baseUrl- the base URL
-