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 WMSService
    WMSService​(java.lang.String baseUrl, java.lang.String layer)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getBaseUrl()  
    java.lang.String getLayer()  
    void setBaseUrl​(java.lang.String baseUrl)  
    void setLayer​(java.lang.String layer)  
    java.lang.String toWMSURL​(int x, int y, int zoom, int tileSize)
    Convertes to a WMS URL

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 URL
      layer - 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 coordinate
      y - the y coordinate
      zoom - the zomm factor
      tileSize - 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