Docs
Contents

River network

What it is

The 101,231 reaches of the national river network, with Strahler order and length.

The upstream service publishes no abstract for this layer.

At a glance

IDpt_agua_rede_hidrografica
Records101,231
Size30.5 MB
GeometryLINESTRING
CRSEPSG:4326
Versionv/2026-08
Sourceapa
Upstream layerapa_geodocs:netElementL
LicenceCC-BY-4.0

Extent: -9.497171, 37.013794 → -5.813851, 42.566706

Download

curl -H "x-api-key: $GEOVIS_API_KEY" \
https://datos.geovis.es/v1/data/datasets/pt_agua_rede_hidrografica/download

sha256 of this version:

e3818c4d0dcc917f1369c8a726d0562f254e8351a4f2d7a3945e8265bea7c962

Query it without downloading it

import duckdb
con = duckdb.connect(); con.execute("INSTALL spatial; LOAD spatial; INSTALL httpfs; LOAD httpfs;")
con.execute("SELECT count(*) FROM read_parquet('<url-firmada>')").fetchone()

Columns

Column names are kept exactly as the agency publishes them. They are not translated: renaming them would break traceability against the official source.

The literals below are the ones present in the data: they work as-is in a WHERE. Only columns with few distinct values are enumerated; for the rest, the count is given.

ColumnTypeFilledDistinctValues
ifcidBIGINT100 %101,231Range: 2056 → 103286
beginlif_1INTEGER100 %10
id_localidVARCHAR100 %47,475
id_namespaVARCHAR100 %1PT
id_versi_1INTEGER100 %10
endlifes_1INTEGER100 %10
innet_voidINTEGER100 %10
fictitiousINTEGER100 %10
endnodeBIGINT100 %50,780Range: 6 → 101697
startnodeBIGINT100 %101,231Range: 1 → 101696
name_voidINTEGER100 %10
hyid_voidINTEGER100 %10
flowdirectVARCHAR100 %1inDirection
flowdire_1VARCHAR100 %1http://inspire.ec.europa.e
flowdire_2INTEGER100 %10
length_DOUBLE100 %10.0
length_voiINTEGER100 %10
validfrom_INTEGER100 %10
validto_voINTEGER100 %10
cableway_2INTEGER100 %10
designat_1INTEGER100 %10
airroute_2INTEGER100 %10
stypeBIGINT100 %154
from_nodeBIGINT100 %101,231Range: 1 → 101696
to_nodeBIGINT100 %50,780Range: 6 → 101697
nextdownidBIGINT100 %50,315Range: 0 → 101218
hydroidBIGINT100 %101,231Range: 1 → 101231
featureidBIGINT100 %101,231Range: 1 → 101231
fnodefaDOUBLE100 %37,911Range: 1000.0 → 155803700.0
tnodefaDOUBLE100 %40,009Range: 1000.0 → 155806400.0
riverrkINTEGER100 %103 · 4 · 2 · 5 · 1 · 6 · 0 · 7
streamordeVARCHAR100 %81 · 2 · 3 · 4 · 5 · 6 · 7 · 8
streamor_1VARCHAR100 %1Strahler
streamor_2VARCHAR100 %1Portugal
dt_codeVARCHAR100 %18
dt_aproxBOOLEAN100 %2false · true
_fuenteVARCHAR100 %1apa
_fecha_capturaDATE100 %12026-08-25
_fecha_edicionDATE100 %12026-08-22
_licenciaVARCHAR100 %1CC-BY-4.0
_atribucionVARCHAR100 %1Agência Portuguesa do Ambi
bboxSTRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE)100 %—
geometryGEOMETRY(‘EPSG:4326’)100 %—