---
id: "fr_sandre_cours_eau_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "French hydrographic entity code (Sandre, cours d'eau)"
regexp: "^(?:[A-Z](?:\\d{3}|\\d{2}-|\\d--|---)|----)\\d{3}[0-9A-Z]$"
categories: ["environment", "geo"]
country: ["FR"]
langs: ["fr"]
quality: 100
url: "https://registry.apicrafter.io/datatype/fr_sandre_cours_eau_code"
---

# French hydrographic entity code (Sandre, cours d'eau) (`fr_sandre_cours_eau_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.

Sandre code of a hydrographic entity (river, canal) of the Sandre hydrographic reference: eight characters. The first four are the zone code kept only as far as the entity stays inside one hydrographic region, sector or sub-sector, padded with hyphens (---- for an entity across regions), then come a 3-digit order number and a milieu character (0 for a natural watercourse).

- Personal data (PII): no
- Categories: Environment (protected areas, biodiversity, water, weather, emissions, waste) (environment), Geographic identifiers (geo)
- Countries: France (FR)
- Languages: French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

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

## Examples

- `K---0090` — Vigicrues station reference, entity of region K
- `Y34-0400` — Entity of sub-sector Y34
- `H6123301` — Entity inside zone H612
- `----0010` — The Seine
- `K---009` (invalid example) — seven characters
- `K-1-0090` (invalid example) — hyphen before a digit

## Mappings

- wikidata: [`P1717`](https://www.wikidata.org/wiki/Property:P1717)

## Metacrafter rules

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

- `frsandrecourseaubyhydroname` (field, `fr/fr_environment.yaml`)
- `frsandrecourseaubyname` (field, `fr/fr_environment.yaml`)
- `frsandrecourseauvalue` (data, `fr/fr_environment.yaml`)

## Supported by tools

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

## Translations

- fr: Code de l'entité hydrographique

## Sources

- doc: <https://www.sandre.eaufrance.fr/sites/default/files/IMG/pdf/Point_CodeHydrographique.pdf>
- wikidata: <https://www.wikidata.org/wiki/Property:P1717>

## Quality

Score 100/100.

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