Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

refineLimits - Class: WMSLayer

Refine search based on geographic limits

Syntax

layers.refineLimits(param, val, ...)

Description

layers.refineLimits(param, val, ...) searches for elements of layers that match specific latitude or longitude limits. The results include a given layer only if its boundary quadrangle (as defined by the Latlim and Lonlim properties) is fully contained in the quadrangle specified by the optional 'Latlim' or 'Lonlim' parameters. Partial overlap does not result in a match. 'Latlim' and 'Lonlim' can be abbreviated and case does not matter. All angles are in units of degrees.

The default value of [] for either 'Latlim' or 'Lonlim' implies that all layers match the criteria. For example, if you specify the following:

layer.refineLimits('Latlim', [0 90], 'Lonlim', [])

then the results include all the layers that cover the northern hemisphere.

Inputs

param, val

Specifies geographic limits of search.

ParameterValue
'Latlim'

A two-element vector of latitude specifying the latitudinal limits of the search in the form [southern_limit northern_limit] or a scalar value representing the latitude of a single point.

'Lonlim'

A two-element vector of longitude specifying the longitudinal limits of the search in the form [western_limit eastern_limit] or a scalar value representing the longitude of a single point.

Example

Find layers containing global elevation data.

 elevation = wmsfind('elevation');
 latlim = [-90, 90];
 lonlim = [-180, 180];
 globalElevation = ...
    elevation.refineLimits('Latlim', latlim, 'Lonlim', lonlim);

 % Print out the server titles from the unique servers.
globalElevation.serverTitles'

Sample Output

ans = 

    'Global'
    'NRL GIDB Portal: Missouri CARES Maps'
    'NRL GIDB Portal: NOAA NGDC Maps'

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