Class WMService


  • public class WMService
    extends Object
    Represents a remote WMS Service.
    Author:
    Chris Hodgson chodgson@refractions.net
    • Constructor Detail

      • WMService

        public WMService​(String serverUrl)
        Constructs a WMService object from a server URL.
        Parameters:
        serverUrl - the URL of the WMS server
    • Method Detail

      • initialize

        public void initialize()
                        throws IOException
        Connect to the service and get the capabilities. This must be called before anything else is done with this service.
        Throws:
        IOException
      • getServerUrl

        public String getServerUrl()
        Gets the url of the map service.
        Returns:
        the url of the WMService
      • getTitle

        public String getTitle()
        Gets the title of the map service. The service must have previously been initialized, otherwise null is returned.
        Returns:
        the title of the WMService
      • getCapabilities

        public Capabilities getCapabilities()
        Gets the Capabilities for this service. The service must have previously been initialized, otherwise null is returned.
        Returns:
        a copy of the MapDescriptor for this service
      • createMapRequest

        public MapRequest createMapRequest()
        Creates a new MapRequest object which can be used to retrieve a Map from this service.
        Returns:
        a MapRequest object which can be used to retrieve a map image from this service