MapPixelXYToCoord()
Summary
Translates a map pixel X-Y coordinate to longitude and latitude.
Syntax
c = MapPixelXYToCoord(string map_name, array x_and_y)
| Argument | Contents |
|---|---|
| map_name | The map whose coordinate system is used |
| x_and_y | A two-element array containing the x-value and y-value of the coordinate to be transformed |
Returns
A coordinate indicating the longitude and latitude of the point.
Notes
-
The input values are relative to the upper left corner of the map window.
-
If the map_name is null the current map is used.
Error Codes
| Error Type | Meaning |
|---|---|
| Error | Translation has failed |
See Also
| Function | Summary |
|---|---|
| MapCoordToPixelXY() | Translates a longitude-latitude coordinate to a map pixel X-Y coordinate |
| MapCoordToXY() | Translates a longitude-latitude coordinate to a local map X-Y coordinate |
| MapXYToCoord() | Translates a local map X-Y coordinate to longitude and latitude |