Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getCapabilities

Class: WebMapServer

Get capabilities document from server

Syntax

capabilities = getCapabilities(server)

Description

capabilities = getCapabilities(server) retrieves the capabilities document from the server as a WMSCapabilities object and updates the RequestURL property.

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);

Tips

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

Was this topic helpful?