Skip to main content

hypercadaster_ES

A comprehensive Python library for downloading, processing, and analyzing Spanish cadastral data with integration of external geographic datasets and EnergyPlus model generation.

Python Version License Version

🎯 Overview

hypercadaster_ES is a powerful Python library designed for comprehensive analysis of Spanish cadastral data. It provides tools for downloading official cadastral information, integrating it with external geographic datasets, performing advanced building analysis including geometric inference, orientation analysis, and exporting building models for energy simulation (EnergyPlus IDF).

Key Features

  • 🏘️ Comprehensive Cadastral Data Access: Download building and parcel data from the Spanish Cadastre, and nationwide address points from CartoCiudad (CNIG)
  • 🗺️ Multi-source Data Integration: Merge with census tracts, postal codes, elevation models, and OpenStreetMap data
  • 🧮 Socioeconomic Enrichment: INE indicators via social_ES (income atlas, population, education, dwelling stock & tenure, empty & secondary dwellings, rental & housing prices, electricity) joined per building, plus per-building Essential-Characteristics downscaling
  • 🌦️ Weather Enrichment: Annual ERA5-Land climate indicators per building (heating/cooling degree days, precipitation, solar irradiation, temperature, humidity, wind) via merge(weather_layer=True), gathered from the Copernicus analysis-ready (ARCO) Zarr stores
  • 🏗️ Advanced Building Analysis: Geometric inference, floor footprint calculation, building space classification, shadow analysis
  • 📊 Orientation & Environmental Analysis: Building orientation analysis, street relationships, shadow calculations, terrain analysis
  • 🔌 External Tool Integration: Export capabilities for building energy simulation tools (EnergyPlus via eppy+geomeppy)
  • 📈 Scalable Processing: Optimized for large-scale municipal and provincial analysis with DuckDB persistence
  • ⚡ Memory Efficient: Central DuckDB database reduces memory footprint; heavy BLOB columns loaded on demand

📚 Documentation

Getting Started

Library Reference

  • Energy Model & Scenarios - How the EnergyPlus model is built, the occupant-behaviour model, and the scenarios
  • Library Structure - Module overview and key entry points
  • Visualisation - Every plot the library draws, with figures: maps, terrain, wall types, thermal zones, shadows, the 3-D views and the scenario report
  • Data Sources & Coverage - Available datasets and geographic coverage
  • Output Data Schema - Complete data structure and column reference
  • API Reference - Generated from docstrings with pdoc: run ./scripts/build_api_docs.sh and open docs/api/index.html

Development

🚀 Quick Start

Library installation

pip install hypercadaster-ES

Basic Usage

import hypercadaster_ES as hc

# Download data for Barcelona municipality
hc.download("./data", cadaster_codes=["08900"])

# Merge all data into a unified GeoDataFrame (persisted to building_results.duckdb internally)
gdf = hc.merge("./data", cadaster_codes=["08900"])

# Optional: save the GeoDataFrame for later use (e.g., as Parquet or pickle)
gdf.to_parquet("./data/barcelona_data.parquet")  # or to_pickle(..., compression="gzip")

Accessing Results via DuckDB

The central building_results.duckdb is the canonical artifact. Query directly instead of materialising full GeoDataFrames:

# Read inferred indicators from DB (returns pandas DataFrame)
br = hc.utils.read_br_inferred_indicators("08900", "./data")

# Fetch heavy shadow/terrain columns for one building (on demand)
heavy = hc.utils.get_heavy_columns_for_building(
    "./data", "08900", "8341105DF2884A"
)

# Access other tables via ResultsHandle (advanced)
from hypercadaster_ES import _db
handle = hc.ResultsHandle("./data/results/building_results.duckdb", "08900")
spaces_df = handle.sbr_to_pandas()  # space-level results

For detailed installation instructions and advanced examples, see Installation & Quick Start.

🎯 Key Applications

  • Urban Planning & Municipal Management: Building stock analysis, zoning compliance, infrastructure planning
  • Energy & Environmental Analysis: Building energy modeling, carbon footprint analysis
  • Real Estate & Economic Analysis: Property valuation, market analysis, location intelligence
  • Academic Research: Urban geography, transportation research, social sciences applications

📊 Geographic Coverage

  • National Coverage: Complete coverage of peninsular Spain, Balearic Islands, Canary Islands (except Basque Country and Navarre)
  • Enhanced Coverage: Additional Barcelona open data layers
  • Scale Range: Individual buildings to entire autonomous communities

🏗️ Advanced Features

  • Building Inference Engine: Advanced geometric analysis, floor footprint calculation, orientation analysis, shadow and terrain analysis
  • Multi-source Integration: Cadastral, census, elevation, postal, and OpenStreetMap data
  • CAT Files Support: Detailed building space classification from official cadastral CAT format
  • Energy Simulation Ready: Export formats compatible with building energy simulation tools (EnergyPlus IDF via hc.energy.build_energy_model)
  • POI Proximity Analysis: Points of interest from OpenStreetMap with distance-based indicators
  • Socioeconomic Layer: INE indicators via social_ES joined at the finest geographic level (merge(social_ES_layer=True)), each figure taken from a single source dataset, with ec__* Essential-Characteristics downscaling when CAT files are used
  • Weather Layer: Annual ERA5-Land climate indicators per building (merge(weather_layer=True)) — degree days, precipitation, irradiation, temperature, humidity, wind — via the Copernicus analysis-ready (ARCO) Zarr stores with cdsapi fallback
  • Commercial Premises Analysis: Barcelona-specific ground floor commercial data

👥 Authors & Contributors

Main Authors:

Co-authors:

Institutional Affiliations:

  • CIMNE - Centre Internacional de Mètodes Numèrics en Enginyeria, Building Energy and Environment (BEE) group
  • Universitat Politècnica de Catalunya (UPC) - Technical University of Catalonia

📄 License

This project is licensed under the EUPL v1.2. See the license for details.


hypercadaster_ES - Built with ❤️ for the Spanish urban analysis and building research community

Last updated: December 2026 | Version 1.4.4

Metadata

Release files for hypercadaster-es 1.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hypercadaster-es 1.4.4
File Size Uploaded Provenance Actions
hypercadaster_es-1.4.4.tar.gz 1.5 MB With provenance Details for hypercadaster_es-1.4.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hypercadaster-es 1.4.4
File Interpreter ABI Platform Actions
hypercadaster_es-1.4.4-py3-none-any.whl Python 3 none any Details for hypercadaster_es-1.4.4-py3-none-any.whl

Total release size: 3.0 MB

Release files / hypercadaster_es-1.4.4.tar.gz

Download URL hypercadaster_es-1.4.4.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
a9b3207b4f47d4ea4dd407884d832b236680380bb3bd84e77e094860c95f76b5
BLAKE2b-256 checksum
How to use checksums
b03b2eb745ead3ff28f672357cd249f1f42687a4baee6ec600db9e62f2cff9a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / hypercadaster_es-1.4.4-py3-none-any.whl

Download URL hypercadaster_es-1.4.4-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
71049f43f33680f5d7e4672776871cbed5d61385feea5fce417df0877f1e8680
BLAKE2b-256 checksum
How to use checksums
00228ee5b6f1e02b75a6d72f4482bea8ebb4c095e0678be2749ff26fba6c6ace
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for hypercadaster-es 1.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hypercadaster_es-1.4.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page