WMSCapabilities class

Web Map Service capabilities object

Description

A WMSCapabilities object represents a Web Map Service (WMS) capabilities document obtained from a WMS server.

Construction

capabilities = WMSCapabilites(ServerURL, capabilitiesResponse) constructs a WMSCapabilities object from the input string parameters. The ServerURL string, a WMS server URL, includes the protocol 'http://' or 'https://'. The capabilitiesResponse string contains XML elements that describe the capabilities of the ServerURL WMS server.

Properties

ServerTitle

Title of server

Data Type: string

ServerURL

URL of server

Data Type: string

ServiceName

Name of Web map service

Data Type: string

Version

WMS version specification

Data Type: string

Abstract

Information about server

Data Type: string

OnlineResource

Online information about server

Data Type: string (URL)

ContactInformation

Contact information for an individual or an organization, including an email address, if provided

Data Type: structure

 ContactInformation Structure Array

AccessConstraints

Constraints inherent in accessing the server, such as server load limits

Data Type: string

Fees

Types of fees associated with accessing server

Data Type: string

KeywordList

Descriptive keywords of the server

Data Type: cell array of strings

ImageFormats

Image formats supported by server

Data Type: cell array of strings

LayerNames

Layer names provided by server

Data Type: cell array of strings

Layer

Information about layers on WMS server. See the WMSCapabilities.Layer reference page for more information.

Data Type: WMSLayer array

AccessDate

Date of request to server

Data Type: string

Methods

dispDisplay properties

Examples

Construct a WMSCapabilities object from the contents of a downloaded capabilities file from the NASA SVS Image Server:

nasa = wmsfind('NASA SVS Image', 'SearchField', 'servertitle');
serverURL = nasa(1).ServerURL;
server = WebMapServer(serverURL);
capabilities = server.getCapabilities;
filename = 'capabilities.xml';
urlwrite(server.RequestURL, filename);
    
fid = fopen(filename, 'r');
capabilitiesResponse = fread(fid, 'uint8=>char');
fclose(fid);
capabilities = WMSCapabilities(serverURL, capabilitiesResponse);
Was this topic helpful?