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

collapse all

Search the WMS Database for layers from the NASA SVS Image Server. Create a WebMapServer object from one of the layers. Get the capabilities document from the 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