Skip to content

pycensus.census.countries.spain.catastro

Catastro (state INSPIRE Buildings + the foral cadastres of Gipuzkoa, Araba and Navarra) aggregated to census sections.

load_attributes(province, sections, data_dir=None)

GEOID + the catastro_* columns of FEATURES for the census sections (columns GEOID + polygons) of ONE province.

Downloads (and caches) every municipality of the province for the state feeds: the cadastre's municipality codes are its own (not INE's), so the join to sections is purely spatial.

Parameters:

Name Type Description Default
province str

2-digit province code.

required
sections GeoDataFrame

Census sections of that province.

required
data_dir Optional[str]

Folder of the raw downloads; None = the pycensus cache.

None

Returns:

Type Description
DataFrame

One row per section.

source_of_province(province)

state | araba | navarra | gipuzkoa | bizkaia (bizkaia: not implemented).

Parameters:

Name Type Description Default
province str

2-digit province code.

required

Returns:

Type Description
str

The cadaster source.