Purpose
Returns coordinate system name string from MapBasic Coordinate system clause. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
CoordSysName$ ( string )
Return Value
String
Example
Note CoordSysName$("Coordsys Earth Projection 1, 62")
Returns this string in the MapInfo dialog box:
Longitude / Latitude (NAD 27 for Continental US)
Note: If a coordinate system name does not exist in the MapInfow.prj file, such as when the map is in NonEarth system in Survey Feet, then function will return an empty string.
Note CoordSysName$("CoordSys NonEarth Units " + """survey ft""" +
"Bounds (0, 0) (10, 10)")
If an invalid CoordSys clause is passed such as this (using invalid units):
Note CoordSysName$("CoordSys Earth Projection 3, 74, " + """foo""" +
"-90, 42, 42.7333333333, 44.0666666667, 1968500, 0")
Then an Error regarding the Invalid Coordinate System should be returned (Error #727).
Invalid Coordinate System: CoordSys Earth Projection <content>