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 the USGS National Map.

url = ['https://basemap.nationalmap.gov/ArcGIS/services/USGSImageryOnly/' ...
       'MapServer/WMSServer?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS'];

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

figure
worldmap("world")
geoshow(A,R)
mlabel off
plabel off
title("USGS Imagery")

See Also

| |

Related Topics