Well-known text (WKT) geometry
ID wkt
DatatypeNot PIIDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Geometry written in the well-known text (WKT) markup of the OGC Simple Features standard (ISO 19125), such as POINT (30 10) or POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10)). PostGIS also writes extended WKT (EWKT), which starts with the spatial reference id, as in SRID=4326;POINT (30 10).
- Categories
- Geographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- FTA
SPATIAL.WKT- Quality
- 100/100
- Metacrafter rules
- no detection rule yet
- Supported by tools
- Dataiku DSS, FTA (Fast Text Analysis)
Regular expression
^(?:SRID=\d+;)?(?:POINT|MULTIPOINT|LINESTRING|MULTILINESTRING|POLYGON|MULTIPOLYGON|GEOMETRYCOLLECTION|CIRCULARSTRING|COMPOUNDCURVE|CURVEPOLYGON|MULTICURVE|MULTISURFACE|POLYHEDRALSURFACE|TRIANGLE|TIN)(?: ?(?:Z|M|ZM))? ?(?:\(.*\)|EMPTY)$
Python re syntax.
Examples
| Value | Description |
|---|---|
| POINT (30 10) | |
| LINESTRING (30 10, 10 30, 40 40) | |
| POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10)) | |
| SRID=4326;POINT (30.5234 50.4501) | extended WKT |
| {"type": "Point", "coordinates": [30, 10]} invalid | GeoJSON, not WKT |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Геометрия WKT |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry
- other: https://github.com/tsegall/fta/blob/main/SemanticTypes.md
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/wkt - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/wkt.yamlon GitHub