Datatypes › Geographic identifiers
Well-known text (WKT) geometry
ID wkt
DatatypeNot PII
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
- 1 rule (0 by field name, 1 by value)
wktvaluedata, common/geo.yaml
- Supported by tools
- Dataiku DSS, FTA (Fast Text Analysis), metacrafter
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.
Test a value
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: Well-known text representation of geometry (en.wikipedia.org)
- other: github.com/tsegall/fta/blob/main/SemanticTypes.md
Use this record
- Page URL:
https://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