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)
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

ValueDescription
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

LanguageNameDescription
RussianГеометрия WKT

Sources

Use this record