| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Mapping Toolbox |
| Contents | Index |
| Learn more about Mapping Toolbox |
Web Map Service capabilities object
A WMSCapabilities object represents a Web Map Service (WMS) capabilities document obtained from a WMS server.
capabilities = WMSCapabilites(ServerURL, capabilitiesResponse) constructs a WMSCapabilities object from the input string parameters. The ServerURL string, a WMS server URL, includes the protocol 'http://' or 'https://'. The capabilitiesResponse string contains XML elements that describe the capabilities of the ServerURL WMS server.
ServerTitle |
Title of server Data Type: string |
ServerURL |
URL of server Data Type: string |
ServiceName |
Name of Web map service Data Type: string |
Version |
WMS version specification Data Type: string |
Abstract |
Information about server Data Type: string |
OnlineResource |
Online information about server Data Type: string (URL) |
ContactInformation |
Contact information for an individual or an organization, including an E-mail address, if provided Data Type: structure |
AccessConstraints |
Constraints inherent in accessing the server, such as server load limits Data Type: string |
Fees |
Types of fees associated with accessing server Data Type: string |
KeywordList |
Descriptive keywords of the server Data Type: cell array of strings |
ImageFormats |
Image formats supported by server Data Type: cell array of strings |
LayerNames |
Layer names provided by server Data Type: cell array of strings |
Layer |
Information about layers on WMS server. See the WMSCapabilities.Layer reference page for more information. Data Type: WMSLayer array |
AccessDate |
Date of request to server Data Type: string |
| disp | Display properties |
Construct a WMSCapabilities object from the contents of a downloaded capabilities file from the NASA SVS Image Server.
nasa = wmsfind('NASA SVS Image', 'SearchField', 'servertitle');
serverURL = nasa(1).ServerURL;
server = WebMapServer(serverURL);
capabilities = server.getCapabilities;
filename = 'capabilities.xml';
urlwrite(server.RequestURL, filename);
fid = fopen(filename, 'r');
capabilitiesResponse = fread(fid, 'uint8=>char');
fclose(fid);
capabilities = WMSCapabilities(serverURL, capabilitiesResponse);
WebMapServer | wmsinfo | WMSLayer
![]() | westof | disp (WMSCapabilties) | ![]() |

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 |