maps

List available map projections and verify names

Syntax

strmat = maps('namelist')
strmat = maps('idlist')
stdstr = maps(id_string)

Description

maps displays in the Command Window a table describing all projections available for use.

strmat = maps('namelist') returns the English names for the available projections as a matrix of strings.

strmat = maps('idlist') returns the standard projection identification strings for the available projections as a matrix of strings.

stdstr = maps(id_string) returns the specific standard projection identification string associated with a unique truncation abbreviation.

Examples

To show the first five entries of the projections name list,

str1 = maps('namelist');
str1(1:5,:)
ans =
Balthasart Cylindrical          
Behrmann Cylindrical            
Bolshoi Sovietskii Atlas Mira   
Braun Perspective Cylindrical   
Cassini Cylindrical    

The corresponding shorthand names are

str2 = maps('idlist');
str2(1:5,:)
ans =
balthsrt   
behrmann   
bsam       
braun      
cassini    

These are the strings used, for example, when setting the axesm property MapProjection.

The functions setm and axesm recognize unique abbreviations (truncations) of these strings. The maps function can be used to convert such an abbreviation to the standard ID string:

stdstr = maps('merc')
stdstr =
mercator

When the function name alone is used,

maps

MapTools Projections 
CLASS             NAME                               ID STRING  
Cylindrical       Balthasart Cylindrical             balthsrt
Cylindrical       Behrmann Cylindrical               behrmann
Cylindrical       Bolshoi Sovietskii Atlas Mira*     bsam
Cylindrical       Braun Perspective Cylindrical*     braun
Cylindrical       Cassini Cylindrical                cassini
Cylindrical       Central Cylindrical*               ccylin
Cylindrical       Equal Area Cylindrical             eqacylin
Cylindrical       Equidistant Cylindrical            eqdcylin
Cylindrical       Gall Isographic                    giso...

The actual result contains all defined projections.

See Also

|

Was this topic helpful?