Purpose
Converts a Well-Known Text (WKT) string into a MapBasic coordinate system (CoordSys) clause. The CoordSys clause specifies the coordinate system used by the paper map. For more details, see CoordSys clause. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
WKTToCoordSysString$( wkt_string )
wkt_string is a Well-Known Text (WKT) string value.
Return Value
String expression, representing a coordinate system. If no string value is found, returns an empty string.
Example
The following example:
print WKTToCoordSysString$("GEOGCS["+"""NAD27 Latitude/Longitude,Degrees"""+",DATUM[
"+"""North_American_Datum_1927"""+",SPHEROID[
"+"""Clarke - 1866"""+",6378206.4,294.9786982139006],
AUTHORITY["+"""EPSG"""+","+"""6267"""+"]],
PRIMEM["+"""Greenwich"+""",0],UNIT["+"""degree"""+",0.0174532925199433]]")
Produces the following string:
CoordSys Earth Projection 1, 62
See Also:
CoordSys clause, CoordSysStringToWKT$() function, Set CoordSys statement