Datatypes › Environment (protected areas, biodiversity, water, weather, emissions, waste)
Pfafstetter basin code
ID pfafstetter_code
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).
Code of a river basin in the Pfafstetter coding of Otto Pfafstetter: at every level the four largest tributary basins are numbered 2, 4, 6 and 8, the interbasins between them 1, 3, 5, 7 and 9 and a closed basin 0, so a code of n digits is a basin of level n inside the basin named by its first n-1 digits. South American hydrographic units are coded this way (in Bolivia 4 the Amazon, 8 La Plata and 0 the closed Altiplano basin; 85899 a unit of the Guadalquivir in Tarija), as are the ottobacias of the Brazilian water agency ANA and the PFAF_ID of the global HydroBASINS. Leading zeros are part of the code (015).
- Parent datatype
- Unique identifier
id - Categories
- Environment (protected areas, biodiversity, water, weather, emissions, waste), Geographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 2 rules (2 by field name, 0 by value)
pfafstettercodebynamefield, common/geo.yamlpfafstetterlevelbynamefield, common/geo.yaml
- Supported by tools
- metacrafter
Regular expression
^\d{1,12}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 85899 | level 5, Río Guadalquivir (Tarija, Bolivia) |
| 8589929 | level 7, inside 85899 |
| 01592 | level 5 of the closed Altiplano basin (Katari, La Paz) |
| 8a invalid | digits only |
Translations
| Language | Name | Description |
|---|---|---|
| Spanish | Código Pfafstetter de cuenca | |
| Portuguese | Código de Pfafstetter (ottobacia) |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/pfafstetter_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/environment/pfafstetter_code.yamlon GitHub