Main Content

getCapabilities

Get capabilities document from server

Description

example

capabilities = getCapabilities(server) retrieves the capabilities document from the Web map service server, server, and updates the RequestURL property of the server.

Examples

Retrieve the Capabilities Document from the NASA SVS Image Server

nasa = wmsfind('NASA SVS Image', 'SearchField', 'servertitle');
serverURL = nasa(1).ServerURL;
server = WebMapServer(serverURL);
capabilities = getCapabilities(server);

Input Arguments

collapse all

Web map server, specified as a WebMapServer object.

Output Arguments

collapse all

Capabilities document, returned as a WMSCapabilities object.

Tips

The getCapabilities method accesses the Internet to retrieve the document. Periodically, the WMS server is unavailable. Retrieving the document can take several minutes.

Introduced before R2006a