This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

disp

Display properties of WMS layers or capabilities

Syntax

disp(layers,Name,Value,...)
disp(capabilities)

Description

example

disp(layers,Name,Value,...) displays the index number followed by the property names and property values of the Web map service layers, layers. You can specify additional options using one or more Name,Value pair arguments.

example

disp(capabilities) displays the properties of the Web map service capabilities document, capabilities. The function removes hyperlinks and expands character vector and cell array properties.

Examples

collapse all

Display LayerTitle and LayerName properties to the command window without an Index.

layers = wmsfind('srtm30');
disp(layers(1:5),'Index', 'off', ...
   'Properties',{'layertitle','layername'});
  5x1 WMSLayer

  Properties:
      LayerTitle: 'SRTM30_PLUS Estimated Topography, 30 seconds, Global, v11 - z'
       LayerName: 'srtm30plus:z'

      LayerTitle: 'SRTM30_PLUS Estimated Topography, 30 seconds, Global, v11, Lon+/-180 - z'
       LayerName: 'srtm30plus_LonPM180:z'

      LayerTitle: 'Topography, SRTM30+ Version 1.0, 30 arc second, Global - topo'
       LayerName: 'usgsCeSrtm30v1:topo'

      LayerTitle: 'Topography, SRTM30+ Version 6.0, 30 arc second, Global - topo'
       LayerName: 'usgsCeSrtm30v6:topo'

      LayerTitle: 'SRTM30 with Bathymetry (900m) merged with global ASTER (30m)'
       LayerName: 'EarthAsterElevations30m'

Sort and display the LayerName property with an index.

Retrieve the layers.

layers = wmsfind('elevation');

Sort the layers.

[layerNames, index] = sort({layers.LayerName});

Display as a sample the first five results.

layers = layers(index);
disp(layers(1:5),'Label','off', 'Properties', 'layername');
  5x1 WMSLayer

  Properties:
           Index: 1
'0'

           Index: 2
'133'

           Index: 3
'134'

           Index: 4
'141'

           Index: 5
'201'

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

Display the properties of the capabilities document.

disp(capabilities)

Input Arguments

collapse all

Layers to display, specified as an array of WMSLayer objects.

WMS capabilities document to display, specified as a WMSCapabilities object.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'Properties',{'layertitle','layername'}

You can abbreviate parameter names, and case does not matter.

Properties to display, specified as a character vector or cell array of character vectors. The properties are displayed in the same order as they are provided to Properties. Permissible values are: 'servertitle', 'servername', 'layertitle', 'layername', 'latlim', 'lonlim', 'abstract', 'coordrefsyscodes', 'details', or 'all'. To list all the properties, set 'Properties' to 'all'.

Example: {'coordrefsyscodes','latlim','lonlim'}

Flag to display property values, specified as the character vector 'on' or 'off'. The value is case-insensitive. If you set 'Label' to 'on', then the property name appears followed by its value. If you set 'Label' to 'off', then only the property value appears in the output.

Example: 'off'

Flag to display property indices, specified as the character vector 'on' or 'off'. The value is case-insensitive. If you set 'Index' to 'on', then disp lists the element's index in the output. If you set 'Index' to 'off', then disp does not list the index value in the output.

Example: 'off'

Introduced in R2009b