Datatypes

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

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]} invalidGeoJSON, not WKT

Translations

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

Sources

Use this record