---
id: "wkt_crs"
kind: "datatype"
status: "draft"
is_pii: false
name: "Coordinate reference system in well-known text (WKT CRS)"
regexp: "^(?:GEOGCS|PROJCS|GEOCCS|COMPD_CS|VERT_CS|LOCAL_CS|GEOGCRS|GEODCRS|PROJCRS|VERTCRS|COMPOUNDCRS|BOUNDCRS|ENGCRS)\\[\\\".+\\]$"
categories: ["geo"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/wkt_crs"
---

# Coordinate reference system in well-known text (WKT CRS) (`wkt_crs`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Definition of a coordinate reference system in the well-known text of OGC 01-009 (WKT1, as in ESRI .prj files: GEOGCS[...], PROJCS[...]) or of ISO 19162 (WKT2: GEOGCRS[...], PROJCRS[...]), with the datum, the ellipsoid, the prime meridian, the units and the projection. Opendatasoft keeps the CRS of shapefile imports in a json_ogc_wkt_crs column next to the geometry (asset registers of the City of Ballarat). The code of a CRS is epsg_code; a geometry in WKT is wkt.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^(?:GEOGCS|PROJCS|GEOCCS|COMPD_CS|VERT_CS|LOCAL_CS|GEOGCRS|GEODCRS|PROJCRS|VERTCRS|COMPOUNDCRS|BOUNDCRS|ENGCRS)\[\".+\]$
```

## Examples

- `GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]` — WKT1 geographic CRS
- `PROJCS["GDA94 / MGA zone 54",GEOGCS["GDA94",DATUM["Geocentric_Datum_of_Australia_1994",SPHEROID["GRS 1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],UNIT["metre",1]]` — WKT1 projected CRS
- `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563]],CS[ellipsoidal,2],AXIS["latitude",north],AXIS["longitude",east],ANGLEUNIT["degree",0.0174532925199433]]` — WKT2
- `POINT (143.82 -37.55)` (invalid example) — a geometry (wkt)
- `EPSG:4326` (invalid example) — a CRS code (epsg_code)

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `wktcrsbyname` (field, `common/observations.yaml`)
- `wktcrsvalue` (data, `common/observations.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Система координат в формате WKT

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Well-known_text_representation_of_coordinate_reference_systems>
- doc: <https://docs.ogc.org/is/18-010r7/18-010r7.html>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/wkt_crs.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/wkt_crs.yaml>
