Quantcast

Documentation Center

  • Trial Software
  • Product Updates

getCapabilities

Class: WebMapServer

Get capabilities document from server

Syntax

capabilities = server.getCapabilities()

Description

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

Tips

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

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 = server.getCapabilities;
Was this topic helpful?