FromWKT
Description
Converts a string formatted in WKT (Well-known Text) to a feature geometry, such as a Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, or Geometry Collection.
Note: This function is supported for both the MapInfo codespace and EPSG. Geometries designated by
a "Z," "M," or "ZM" after the geometry type are not supported.
An example of a WKT string is:
"LINESTRING (6 7, 3 4, 1 2, -1 -2, -3 -4, -6 -7)"
Syntax
FromWKT (wkt,csys)
Arguments
wkt is a WKT string, and
csys is a coordinate system specification.
Example
Returns a feature geometry from a WKT-formatted string.
select * from "/Samples/NamedTables/WorldTable" where MI_Intersects (Obj, FromWKT('POINT (-0.174302 51.4877229)','epsg:4326'))