Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

displaym - Display geographic data from display structure

Syntax

displaym(displaystruct)
displaym(displaystruct,str)
displaym(displaystruct,strings)
displaym(displaystruct,strings,searchmethod)
h = displaym(displaystruct)

Description

displaym(displaystruct) projects the data contained in the input displaystruct, a Version 1 Mapping Toolbox display structure, in the current axes. The current axes must be a map axes with a valid map definition. See the remarks about Version 1 Display Structures below for details on the contents of display structures.

displaym(displaystruct,str) displays the vector data elements of displaystruct whose 'tag' fields contains strings beginning with the string str. Vector data elements are those whose 'type' field is either 'line' or 'patch'. The string match is case-insensitive.

displaym(displaystruct,strings) displays the vector data elements of displaystruct whose 'tag' field matches begins with one of the elements (or rows) of strings. strings is a cell array of strings (or a 2-D character array). In the case of character array, trailing blanks are stripped from each row before matching.

displaym(displaystruct,strings,searchmethod) controls the method used to match the values of the tag field in displaystruct, as follows:

Note that when searchmethod is specified the search is case-sensitive.

h = displaym(displaystruct) returns handles to the graphic objects created by displaym.

Remarks

The following section documents the contents of display structures.

Version 1 Display Structures

A display structure is a MATLAB structure array with a specific set of fields:

The choice of options for the type field reveals that a display structure can contain

The following table indicates which fields are used in the six types of display structures:

Field Name

Type 'light'

Type 'line'

Type 'patch'

Type 'regular'

Type 'surface'

Type 'text'

type

tag

lat

long

map

   

 

maplegend

   

  

meshgrat

   

  

string

     

altitude

otherproperty

Some fields can contain empty entries, but each indicated field must exist for the objects in the struct array to be displayed correctly. For instance, the altitude field can be an empty matrix and the otherproperty field can be an empty cell array.

The type field must be one of the specified map object types: 'line', 'patch', 'regular', 'surface', 'text', or 'light'.

The tag field must be a string different from the type field usually containing the name or kind of map object. Its contents must not be equal to the name of the object type (i.e., line, surface, text, etc.).

The lat, long, and altitude fields can be scalar values, vectors, or matrices, as appropriate for the map object type.

The map field is a data grid. If map is a regular data grid, maplegend is its corresponding referencing vector, and meshgrat is a two-element vector specifying the graticule mesh size. If map is a geolocated data grid, lat and long are the matrices of latitude and longitude coordinates.

The otherproperty field is a cell array containing any additional display properties appropriate for the map object. Cell array entries can be a line specification string, such as 'r+', or property name/property value pairs, such as 'color','red'. If the otherproperty field is left as an empty cell array, default colors are used in the display of lines and patches based on the tag field.

See Also

extractm, geoshow, mapshow, mlayers, updategeostruct

  


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