Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

servers

Return URLs of unique WMS servers

Syntax

serverURLs = servers(layers)

Description

example

serverURLs = servers(layers) returns the URLs of unique servers associated with Web map service layers, layers.

Examples

collapse all

Find the URLs for government servers.

layers = wmsfind('*.gov*','SearchField', 'serverurl');
serverURLs = servers(layers);
sprintf('%s\n', serverURLs{:})  
ans = 

http://atlas.resources.ca.gov/ArcGIS/Services/Atmosphere_Climate/CaliforniaWeatherForecasts/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Atmosphere_Climate/RIDGE-345min/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Atmosphere_Climate/RIDGE_Precip_Radar/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Atmosphere_Climate/RIDGE_Radar_TimeSeries/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Atmosphere_Climate/USCityWeatherForecast/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Base_Maps/JacksonStForest/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Base_Maps/Topo_GrayScale/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Base_Maps/Topo_Hillshade/MapServer/WMSServer?
http://atlas.resources.ca.gov/ArcGIS/Services/Base_Maps/Topo_Regular/MapServer/WMSServer?
.
.
.     

Find server URLs that contain temperature layers and return them in a Web Map Service Layers (WMSLayer) object.

temperature = wmsfind('temperature');
serverURLs = servers(temperature);
for k=1:numel(serverURLs)
   querystr = serverURLs{k};
   layers = refine(temperature,querystr, ...
      'SearchFields', 'serverurl');
   fprintf('Server URL\n%s\n', layers(1).ServerURL);
   fprintf('Number of layers: %d\n\n', numel(layers));
end
Server URL
http://www.ifremer.fr/thredds/wms/METEOFRANCE-EUR-SST_L3MONOSENSOR_NRT-OBS_SEVIRI_1_1H_SST-EUR-MYOCEAN_FULL_TIME_SERIE
Number of layers: 2

Server URL
http://www.ifremer.fr/thredds/wms/METEOFRANCE-EUR-SST_L3MONOSENSOR_NRT-OBS_SEVIRI_1_1H_SST-REUNION-MYOCEAN_FULL_TIME_SERIE
Number of layers: 2

Server URL
http://www.ifremer.fr/thredds/wms/METEOFRANCE-EUR-SST_L3MONOSENSOR_NRT-OBS_TMI-EUR-MYOCEAN_FULL_TIME_SERIE
Number of layers: 2
.
.
.

Input Arguments

collapse all

Layers to provide server URLs, specified as an array of WMSLayer objects.

Output Arguments

collapse all

URLs of unique servers, returned as a cell array of character vectors.

Introduced in R2009b

Was this topic helpful?