Class WebMapServer


public class WebMapServer extends AbstractOpenWebService<WMSCapabilities,Layer>
WebMapServer is a class representing a WMS. It is used to access the Capabilities document and perform requests. It supports multiple versions and will perform version negotiation automatically and use the highest known version that the server can communicate.

If restriction of versions to be used is desired, this class should be subclassed and it's setupSpecifications() method over-ridden. It should add which version/specifications are to be used to the specs array. See the current implementation for an example.

Example usage:

 WebMapServer wms = new WebMapServer("http://some.example.com/wms");
 WMSCapabilities capabilities = wms.getCapabilities();
 GetMapRequest request = wms.getMapRequest();

 ... //configure request

 GetMapResponse response = (GetMapResponse) wms.issueRequest(request);

 ... //extract image from the response
 
Author:
Richard Gould, Refractions Research