The MapInverse method transforms map coordinates from Cartesian (x, y) coordinates to longitude and latitude, using the map projection associated with the graphic.

Example


See the example for the MapForward Method.

Syntax


Result = graphic.MapInverse(X [, Y] [, /RADIANS])

Return Value


The result is a (2, n) array containing the longitude/latitude coordinates.

Arguments


X

An n-element vector containing the x values. If the Y argument is omitted, X must be a (2, n) array of X and Y pairs.

Y

An n-element vector containing y values. If this argument is omitted, X must be a (2, n) array of X and Y pairs.

Keywords


RADIANS

Set this keyword to indicate that the returned longitude and latitude coordinates should be expressed in radians. By default, returned coordinates are expressed in degrees.

Version History


8.1

Introduced

See Also


MapForward Method, MAP_PROJ_INVERSE