Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

getMap - Class: WebMapServer

Get raster map from server

Syntax

A = server.getMap(mapRequestURL)

Description

A = server.getMap(mapRequestURL) dynamically renders and retrieves a color or grayscale, geographically referenced, raster map from the server and stores it in A. Parameters in the URL, mapRequestURL, define the map. The getMap method also updates the WMSMapRequest.RequestURL property mapRequestURL.

getMap accesses the Internet to retrieve the map, so several minutes may elapse before the map is retrieved, or the server may be unavailable.

Example

Retrieve a map of the global_mosaic layer.

layers = wmsfind('global_mosaic', ...
   'SearchField', 'layername', 'MatchType', 'exact');
layer = layers(1);
server = WebMapServer(layer.ServerURL);
mapRequest = WMSMapRequest(layer, server);
globalMosaic = server.getMap(mapRequest.RequestURL);
  


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