Mapping Toolbox    
minvtran

Transform projected Cartesian data to an unprojected Greenwich coordinate system

Syntax

Description

[lat,lon] = minvtran(x,y) transforms projected Cartesian data to an unprojected Greenwich coordinate frame using the map projection defined for the current axes. No data clips or trims are removed with this calling form.

[lat,lon,alt] = minvtran(x,y,z) transforms the three-dimensional data to the unprojected Greenwich coordinate frame using the map projection defined for the current axes. If z = [] or z is omitted, the default z = 0 is used.

[lat,lon,alt] = minvtran(x,y,z,object,struct) removes all clips and trims from the input data. Allowable object strings are 'surface', 'line', 'patch', 'light', 'text', and 'none'. 'none' will result in no removal of any clips or trims of the input data. The output struct is a structure containing information about the clips and trims associated with the transformed object, and is created by the function mfwdtran.

[...] = minvtran(mstruct,...) requires a valid map projection structure as the first argument. This structure is used to define the map projection calculations performed. No map axes need be displayed when using this calling form.

Examples

Before using any transformation commands, it is necessary to create a map projection structure. You can do this with axesm or the defaultm command:

The following latitude and longitude data for the District of Columbia is obtained from the usalo workspace:

This data can be projected into Cartesian coordinates of the Mercator projection using the mfwdtran command:

To transform the projected x-y data back into the unprojected Greenwich frame, use the minvtran command:

See Also
axesm
Map axes definition and property setting
defaultm
Initialize a default map data structure
gcm
Get current map data structure
mfwdtran
Map forward transformation
vfwdtran
Vector forward transformation
vinvtran
Vector inverse transformation


  minaxis mlabel