Details
ResourceFunction["ToWellKnownText"] converts graphics primities Point, Line, Polygon into Well-Known Text (WKT) strings.
Point[{x_,y_, ___}] is converted into a string that starts with "POINT".
Point[{p1,p2,p3,..}] is converted into a string that starts with "MULTIPOINT".
Line[{p1, p2, …}] is converted to a string that starts with "LINE".
Line[{{p11, p12, …}, {p21, p22, …}, …}] is converted to a string that starts with "MULTILINESTRING".
Polygon[{p1,p2,…}] is converted to a string that starts with "POLYGON".
Polygon[{{p11, p12, …}, {p21, p22, …}, …}] is converted to a string that starts with "MULTIPOLYGON".
Lists of graphics primitives are converted to WKT strings that start with "GEOMETRYCOLLECTION".