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 the SuperMap GIS desktop, WKT string is often used to represent the WKT text markup language.
The first line of the WKT text markup language represents Select Fields, separated by ",", and the second line starts with Geometry attributes, each of which represents an object.
If word wrap is enabled when viewing WKTText Info, you can determine the start of the second object by whether there is a "single quote" at the beginning of each line.
The WKT text markup language for different Geometry is expressed as follows:
- Point object: The coordinates of the point are stored in the Geometry field. The expression is "POINT ()". The coordinates of the point are in parentheses. The X and Y coordinates are separated by spaces. See the following figure:
- Line object: The coordinate information of the line object is also stored in the Geometry field. The expression is "LINESTRING ()". The Nodes from the beginning to the end of each line object are stored in the brackets. The X and Y coordinates of the nodes are separated by spaces, and the coordinates between nodes are separated by commas. See the following figure:
- Face object: The expression for storing coordinates in the Geometry field of the face object is: POLYGON ( ()). The Nodes from the beginning to the end of each face object are stored in the brackets. The coordinates of the first point are the same as those of the last point, indicating that the face object is in a closed state. The X and Y coordinates of a node are separated by a space, and the coordinates between nodes are separated by a comma. See the following figure: