Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

disp - Class: WMSLayer

Display properties

Syntax

layers.disp(..., param, val, ...)

Description

layers.disp(..., param, val, ...) is overloaded to display the index number followed by the property names and property values of the layer.

Use optional parameters for disp to modify the output display. You can abbreviate parameter names, and case does not matter.

Inputs

param, val

Modify output display. Parameter names and their permissible values appear in the table below.

ParameterData TypeValueDefault
'Properties'String or cell array of strings

Determines which properties appear as output and the order in which they appear. Permissible values are: 'servertitle', 'servername', 'layertitle', 'layername', 'latlim', 'lonlim', 'abstract', 'coordrefsyscodes', 'details', or 'all'. The values can be abbreviated and case does not matter. If 'Properties' is 'all', then all the properties are listed.

'all'
'Label'String

A case-insensitive string with permissible values of 'on' or 'off'. If 'Label' is 'on', then the property name appears followed by its value. If 'Label' is 'off', then only the property value appears in the output.

'on'
'Index'String

A case-insensitive string with permissible values of 'on' or 'off'. If 'Index' is 'on', then the element's index is listed in the output. If 'Index' is 'off', then the index value is not listed in the output.

'on'

Examples

Display LayerTitle and LayerName properties to the command window.

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

Sample Output

 LayerTitle: 'SRTM30Plus World with Backdrop'
  LayerName: '10:4'
 

Sort and display the LayerName property and index.

 layers = wmsfind('elevation');
 [layerNames, index] = sort({layers.LayerName});
 layers = layers(index);
 layers.disp('Label','off', 'Properties', 'layername');

Sample Output

           Index: 1418
'topp:elevation_earth_300sec'

           Index: 1419
'topp:elevation_europe_150sec'

           Index: 1420
'topp:elevation_europe_150sec'

See Also

wmsfind

  


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