Purpose
Converts a CoordSys clause into an WKT (Well-Known Text) string value. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
CoordSysStringToWKT$( coordsys_string )
coordsys_string is a CoordSys clause.
Return Value
WKT string. If no WKT string value is found, returns an empty string.
Example
The following example:
Print coordsysstringtowkt$("CoordSys Earth Projection 8, 74, " + """m""" +
", -123, 0, 0.9996, 500000, 0 Affine Units " + """ft""" + ", 1.57, -0.21,
84120.5, 0.19, 2.81, -20318.0")
produces the following WKT string:
PROJCS["_MI_0",GEOGCS[ ,DATUM["North_American_Datum_1983",SPHEROID["Geodet
ic Reference System of
1980",6378137,298.2572221009113],AUTHORITY["EPSG","6269"]],PRIMEM["Greenw
ich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercato
r"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-
123],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],P
ARAMETER["false_northing",0],UNIT["METER",1]]
See Also: