WKT Text Markup Language

WKT is a text markup language used to represent geometry, spatial reference systems, and transformation information between spatial reference systems.

In SuperMap GIS desktop applications, WKT String is commonly used to represent WKT text markup language.

The first line of WKT text markup language represents select fields, separated by commas. Starting from the second line are geometry attributes, with each line representing an object.

When viewing WKTtext with word wrap enabled, the beginning of the second object can be identified by the presence of a quotation mark (") at the start of a line.

WKT representations for different geometry types are as follows:

  • Point: Coordinates are stored in the Geometry field as "POINT()", with X and Y coordinates separated by a space within the parentheses. Example:

  • Line: Coordinate information for line objects is stored in the Geometry field as "LINESTRING()", containing nodes from start to end within the parentheses. X/Y coordinates are separated by spaces, and nodes are separated by commas. Example:

  • Polygon: Coordinate expression in the Geometry field is "POLYGON(())", containing nodes from start to end within parentheses. The first and last coordinates must be identical to indicate closure. X/Y coordinates are separated by spaces, and nodes are separated by commas. Example: