Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

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. The getCapabilities method accesses the Internet to retrieve the document. The WMS server may periodically be unavailable, and several minutes may elapse before the document is retrieved.

Example

Retrieve the capabilities document from the Jet Propulsion Laboratory (JPL) server.

layers = wmsfind('jpl', 'SearchField', 'serverurl');
server = WebMapServer(layers(1).ServerURL);
capabilities = server.getCapabilities();
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS