Main Content

Search for Layers Outside the WMS Database

Search for layers using a web browser instead of using the WMS Database.

Select a search engine. If you are using Google®, select Images and enter getmap wms into the search box.

Choose a map by viewing the images. Click the map link and find the WMS GetCapabilities request somewhere on the page. If you cannot find a GetCapabilities request, try another map.

For example, this code shows the URL of a WMS GetCapabilities request from NASA Earth Observations (NEO).

url = ['https://neo.sci.gsfc.nasa.gov/wms/wms?version=1.3.0', ...
       '&service=WMS&request=GetCapabilities'];

Return the capabilities document by using the wmsinfo function.

c = wmsinfo(url);

Read a layer and display it on a world map.

layer = c.Layer(1);
[A,R] = wmsread(layer, ...
   'ImageFormat','image/png');
figure
worldmap('world')
geoshow(A,R)
title(layer.LayerTitle)

See Also

| |

Related Topics