---
id: "ca_tcp_uid"
kind: "datatype"
status: "draft"
is_pii: false
name: "Canadian Historical GIS census unit identifier (TCPUID)"
regexp: "^[A-Z]{2}\\d{3}(?:\\d{3})?$"
categories: ["geo"]
country: ["CA"]
langs: ["en", "fr"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ca_tcp_uid"
---

# Canadian Historical GIS census unit identifier (TCPUID) (`ca_tcp_uid`)

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

Identifier of a census division or census subdivision of a historical census of Canada (1851 to 1921) in the Canadian Historical GIS, built to join the boundary layers with the census tables and the microdata of The Canadian Peoples / Les populations canadiennes project. A census division is the two-letter abbreviation of the province and a three-digit number (ON001, BC004); a census subdivision adds its three-digit number within the division (ON001001). The fields are named after the level and the census year: TCPUID_CD_1891, TCPUID_CSD_1891. The numbering is made anew for every census year.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Canada (CA)
- Languages: English (en), French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z]{2}\d{3}(?:\d{3})?$
```

## Examples

- `ON001` — a census division of Ontario
- `BC001004` — a census subdivision of the first census division of British Columbia, 1891
- `PE003`
- `ON0010` (invalid example) — four digits
- `3501005` (invalid example) — a census subdivision code of today (casgc)

## Metacrafter rules

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

- `catcpuidbyname` (field, `ca/ca_stats.yaml`)

## Supported by tools

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

## Translations

- ru: Идентификатор переписной единицы Исторической ГИС Канады (TCPUID)

## Sources

- doc: <https://hgiscanada.usask.ca/about>
- other: <https://doi.org/10.5683/SP3/QA4AKE>

## Quality

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

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