---
id: "za_sg_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "South African Surveyor-General 21-character code"
regexp: "^[BCFKNT][0-9A-Z]{3}\\d{17}$"
categories: ["realestate", "geo", "identifiers"]
country: ["ZA"]
langs: ["en"]
quality: 90
url: "https://registry.apicrafter.io/datatype/za_sg_code"
---

# South African Surveyor-General 21-character code (`za_sg_code`)

> **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.

Key of a land parcel in the cadastre of the Chief Surveyor-General of South Africa (SG code, LPI code): 21 characters with the letter of the Surveyor-General office (B, C, F, K, N or T), the major region (3 characters), the minor region or township (4 digits, 0000 for farms), the parcel number (8 digits) and the portion (5 digits), such as C03700050000652000000.

- Personal data (PII): no
- Categories: Real estate (realestate), Geographic identifiers (geo), Universal unique identifiers (identifiers)
- Countries: South Africa (ZA)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[BCFKNT][0-9A-Z]{3}\d{17}$
```

## Examples

- `C03700050000652000000` — Parcel 6520 in the Northern Cape
- `C05300370000000100000`
- `C0370005000065200000` (invalid example) — 20 characters
- `A03700050000652000000` (invalid example) — A is not an office letter

## Metacrafter rules

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

- `zasgcodevalue` (data, `za/za_codes.yaml`)

## Supported by tools

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

## Translations

- ru: Кадастровый код SG (ЮАР)

## Sources

- doc: <https://help.1map.co.za/knowledge/lpi-code-sg21-key>

## Quality

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

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