hypercadaster-ES 1.0.5__tar.gz → 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. hypercadaster_es-1.2.2/MANIFEST.in +3 -0
  2. {hypercadaster_es-1.0.5/hypercadaster_es.egg-info → hypercadaster_es-1.2.2}/PKG-INFO +65 -28
  3. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/README.md +44 -22
  4. hypercadaster_es-1.2.2/hypercadaster_ES/__init__.py +42 -0
  5. hypercadaster_es-1.2.2/hypercadaster_ES/_db.py +1527 -0
  6. hypercadaster_es-1.2.2/hypercadaster_ES/_pretty.py +37 -0
  7. hypercadaster_es-1.2.2/hypercadaster_ES/building_inference.py +3939 -0
  8. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/hypercadaster_ES/downloaders.py +985 -92
  9. hypercadaster_es-1.2.2/hypercadaster_ES/energy.py +3013 -0
  10. hypercadaster_es-1.2.2/hypercadaster_ES/energy_config.yaml +241 -0
  11. hypercadaster_es-1.2.2/hypercadaster_ES/functions.py +604 -0
  12. hypercadaster_es-1.2.2/hypercadaster_ES/interoperability.py +583 -0
  13. hypercadaster_es-1.2.2/hypercadaster_ES/mergers.py +2595 -0
  14. hypercadaster_es-1.2.2/hypercadaster_ES/social.py +998 -0
  15. hypercadaster_es-1.2.2/hypercadaster_ES/utils.py +7450 -0
  16. hypercadaster_es-1.2.2/hypercadaster_ES/weather.py +1612 -0
  17. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2/hypercadaster_es.egg-info}/PKG-INFO +65 -28
  18. hypercadaster_es-1.2.2/hypercadaster_es.egg-info/SOURCES.txt +34 -0
  19. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/hypercadaster_es.egg-info/requires.txt +5 -0
  20. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/setup.py +12 -6
  21. hypercadaster_es-1.2.2/tests/test_aggregation.py +49 -0
  22. hypercadaster_es-1.2.2/tests/test_cat_cache.py +135 -0
  23. hypercadaster_es-1.2.2/tests/test_code_normalisation.py +41 -0
  24. hypercadaster_es-1.2.2/tests/test_codes.py +30 -0
  25. hypercadaster_es-1.2.2/tests/test_dem_tiles.py +39 -0
  26. hypercadaster_es-1.2.2/tests/test_energy_config.py +28 -0
  27. hypercadaster_es-1.2.2/tests/test_geometry.py +63 -0
  28. hypercadaster_es-1.2.2/tests/test_import_surface.py +53 -0
  29. hypercadaster_es-1.2.2/tests/test_live_smoke.py +45 -0
  30. hypercadaster_es-1.2.2/tests/test_social.py +187 -0
  31. hypercadaster_es-1.2.2/tests/test_weather.py +160 -0
  32. hypercadaster_es-1.0.5/MANIFEST.in +0 -2
  33. hypercadaster_es-1.0.5/hypercadaster_ES/__init__.py +0 -28
  34. hypercadaster_es-1.0.5/hypercadaster_ES/building_inference.py +0 -1728
  35. hypercadaster_es-1.0.5/hypercadaster_ES/functions.py +0 -203
  36. hypercadaster_es-1.0.5/hypercadaster_ES/interoperability.py +0 -191
  37. hypercadaster_es-1.0.5/hypercadaster_ES/mergers.py +0 -724
  38. hypercadaster_es-1.0.5/hypercadaster_ES/utils.py +0 -1887
  39. hypercadaster_es-1.0.5/hypercadaster_es.egg-info/SOURCES.txt +0 -17
  40. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/LICENSE +0 -0
  41. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/hypercadaster_ES/cached_files/ine_inspire_codes.xlsx +0 -0
  42. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/hypercadaster_es.egg-info/dependency_links.txt +0 -0
  43. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/hypercadaster_es.egg-info/top_level.txt +0 -0
  44. {hypercadaster_es-1.0.5 → hypercadaster_es-1.2.2}/setup.cfg +0 -0
@@ -0,0 +1,3 @@
1
+ include hypercadaster_ES/cached_files/*.xlsx
2
+ recursive-include hypercadaster_ES/cached_files *.xlsx
3
+ include hypercadaster_ES/energy_config.yaml
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: hypercadaster_es
3
- Version: 1.0.5
3
+ Version: 1.2.2
4
4
  Summary: Python library to obtain the Spanish cadaster data joined with external attributes.
5
5
  Home-page: https://github.com/BeeGroup-cimne
6
6
  Author: Jose Manuel Broto Vispe
@@ -11,14 +11,11 @@ Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Intended Audience :: Science/Research
13
13
  Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
14
- Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
14
  Classifier: Programming Language :: Python :: 3.12
18
15
  Classifier: Topic :: Scientific/Engineering :: GIS
19
16
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
17
  Classifier: Operating System :: OS Independent
21
- Requires-Python: >=3.10
18
+ Requires-Python: >=3.12
22
19
  Description-Content-Type: text/markdown
23
20
  License-File: LICENSE
24
21
  Requires-Dist: numpy<3.0,>=1.24
@@ -42,7 +39,10 @@ Requires-Dist: affine>=2.4
42
39
  Requires-Dist: snuggs>=1.4
43
40
  Requires-Dist: pygeoif>=0.7
44
41
  Requires-Dist: osmnx<2.1,>=1.8
42
+ Requires-Dist: pyrosm>=0.6
45
43
  Requires-Dist: networkx>=3.2
44
+ Requires-Dist: eppy>=0.5.63
45
+ Requires-Dist: geomeppy>=0.12
46
46
  Requires-Dist: pyarrow>=14.0
47
47
  Requires-Dist: openpyxl>=3.1
48
48
  Requires-Dist: et-xmlfile>=1.1
@@ -74,32 +74,50 @@ Requires-Dist: regex<2027.0,>=2023.12
74
74
  Requires-Dist: tqdm>=4.66
75
75
  Requires-Dist: six>=1.16
76
76
  Requires-Dist: PyYAML>=6.0
77
+ Requires-Dist: social_ES>=1.0.0
77
78
  Provides-Extra: dev
78
79
  Requires-Dist: black>=24.0; extra == "dev"
79
80
  Requires-Dist: ruff>=0.4; extra == "dev"
80
81
  Requires-Dist: pytest>=7.0; extra == "dev"
81
82
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
83
+ Requires-Dist: pdoc>=14.0; extra == "dev"
84
+ Dynamic: author
85
+ Dynamic: author-email
86
+ Dynamic: classifier
87
+ Dynamic: description
88
+ Dynamic: description-content-type
89
+ Dynamic: home-page
90
+ Dynamic: keywords
91
+ Dynamic: license
92
+ Dynamic: license-file
93
+ Dynamic: provides-extra
94
+ Dynamic: requires-dist
95
+ Dynamic: requires-python
96
+ Dynamic: summary
82
97
 
83
98
  # hypercadaster_ES
84
99
 
85
- A comprehensive Python library for downloading, processing, and analyzing Spanish cadastral data with integration of external geographic datasets.
100
+ A comprehensive Python library for downloading, processing, and analyzing Spanish cadastral data with integration of external geographic datasets and EnergyPlus model generation.
86
101
 
87
102
  [![Python Version](https://img.shields.io/badge/python-3.10+-blue.svg)](https://python.org)
88
103
  [![License](https://img.shields.io/badge/license-EUPL%20v1.2-blue.svg)](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)
89
- [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://github.com/BeeGroup-cimne/hypercadaster_ES)
104
+ [![Version](https://img.shields.io/badge/version-1.1.0-green.svg)](https://github.com/BeeGroup-cimne/hypercadaster_ES)
90
105
 
91
106
  ## 🎯 Overview
92
107
 
93
- **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, and performing advanced building analysis including geometric inference, orientation analysis, and energy simulation data preparation.
108
+ **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).
94
109
 
95
110
  ### Key Features
96
111
 
97
- - 🏘️ **Comprehensive Cadastral Data Access**: Download building, parcel, and address data from Spanish cadastral services
112
+ - 🏘️ **Comprehensive Cadastral Data Access**: Download building and parcel data from the Spanish Cadastre, and nationwide address points from CartoCiudad (CNIG)
98
113
  - 🗺️ **Multi-source Data Integration**: Merge with census tracts, postal codes, elevation models, and OpenStreetMap data
99
- - 🏗️ **Advanced Building Analysis**: Geometric inference, floor footprint calculation, and building space classification
100
- - 📊 **Orientation & Environmental Analysis**: Building orientation analysis, street relationships, and shadow calculations
101
- - 🔌 **External Tool Integration**: Export capabilities for building energy simulation tools
102
- - 📈 **Scalable Processing**: Optimized for large-scale municipal and provincial analysis
114
+ - 🧮 **Socioeconomic Enrichment**: INE indicators via `social_ES` (income atlas, population, education, rental & housing prices, electricity) joined per building, plus per-building Essential-Characteristics downscaling
115
+ - 🌦️ **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
116
+ - 🏗️ **Advanced Building Analysis**: Geometric inference, floor footprint calculation, building space classification, shadow analysis
117
+ - 📊 **Orientation & Environmental Analysis**: Building orientation analysis, street relationships, shadow calculations, terrain analysis
118
+ - 🔌 **External Tool Integration**: Export capabilities for building energy simulation tools (EnergyPlus via eppy+geomeppy)
119
+ - 📈 **Scalable Processing**: Optimized for large-scale municipal and provincial analysis with DuckDB persistence
120
+ - ⚡ **Memory Efficient**: Central DuckDB database reduces memory footprint; heavy BLOB columns loaded on demand
103
121
 
104
122
  ## 📚 Documentation
105
123
 
@@ -108,12 +126,10 @@ A comprehensive Python library for downloading, processing, and analyzing Spanis
108
126
  - [**Configuration & Examples**](docs/configuration-examples.md) - Advanced configuration and example workflows
109
127
 
110
128
  ### Library Reference
111
- - [**Library Structure**](docs/library-structure.md) - Detailed module documentation and function reference
129
+ - [**Library Structure**](docs/library-structure.md) - Module overview and key entry points
112
130
  - [**Data Sources & Coverage**](docs/data-sources-coverage.md) - Available datasets and geographic coverage
113
131
  - [**Output Data Schema**](docs/output-schema.md) - Complete data structure and column reference
114
-
115
- ### Applications & Use Cases
116
- - [**Use Cases & Applications**](docs/use-cases-applications.md) - Real-world applications and case studies
132
+ - **API Reference** - Generated from docstrings with [pdoc](https://pdoc.dev): run `./scripts/build_api_docs.sh` and open `docs/api/index.html`
117
133
 
118
134
  ### Development
119
135
  - [**Contributing**](docs/contributing.md) - How to contribute to the project
@@ -121,7 +137,7 @@ A comprehensive Python library for downloading, processing, and analyzing Spanis
121
137
 
122
138
  ## 🚀 Quick Start
123
139
 
124
- ### Installation
140
+ ### Library installation
125
141
  ```bash
126
142
  pip install hypercadaster-ES
127
143
  ```
@@ -133,11 +149,30 @@ import hypercadaster_ES as hc
133
149
  # Download data for Barcelona municipality
134
150
  hc.download("./data", cadaster_codes=["08900"])
135
151
 
136
- # Merge all data into a unified GeoDataFrame
152
+ # Merge all data into a unified GeoDataFrame (persisted to building_results.duckdb internally)
137
153
  gdf = hc.merge("./data", cadaster_codes=["08900"])
138
154
 
139
- # Save results
140
- gdf.to_pickle("barcelona_data.pkl", compression="gzip")
155
+ # Optional: save the GeoDataFrame for later use (e.g., as Parquet or pickle)
156
+ gdf.to_parquet("./data/barcelona_data.parquet") # or to_pickle(..., compression="gzip")
157
+ ```
158
+
159
+ ### Accessing Results via DuckDB
160
+ The central `building_results.duckdb` is the canonical artifact. Query
161
+ directly instead of materialising full GeoDataFrames:
162
+
163
+ ```python
164
+ # Read inferred indicators from DB (returns pandas DataFrame)
165
+ br = hc.utils.read_br_inferred_indicators("08900", "./data")
166
+
167
+ # Fetch heavy shadow/terrain columns for one building (on demand)
168
+ heavy = hc.utils.get_heavy_columns_for_building(
169
+ "./data", "08900", "8341105DF2884A"
170
+ )
171
+
172
+ # Access other tables via ResultsHandle (advanced)
173
+ from hypercadaster_ES import _db
174
+ handle = hc.ResultsHandle("./data/results/building_results.duckdb", "08900")
175
+ spaces_df = handle.sbr_to_pandas() # space-level results
141
176
  ```
142
177
 
143
178
  For detailed installation instructions and advanced examples, see [Installation & Quick Start](docs/installation-quickstart.md).
@@ -145,12 +180,10 @@ For detailed installation instructions and advanced examples, see [Installation
145
180
  ## 🎯 Key Applications
146
181
 
147
182
  - **Urban Planning & Municipal Management**: Building stock analysis, zoning compliance, infrastructure planning
148
- - **Energy & Environmental Analysis**: Building energy modeling, solar potential assessment, carbon footprint analysis
183
+ - **Energy & Environmental Analysis**: Building energy modeling, carbon footprint analysis
149
184
  - **Real Estate & Economic Analysis**: Property valuation, market analysis, location intelligence
150
185
  - **Academic Research**: Urban geography, transportation research, social sciences applications
151
186
 
152
- See [Use Cases & Applications](docs/use-cases-applications.md) for detailed descriptions and examples.
153
-
154
187
  ## 📊 Geographic Coverage
155
188
 
156
189
  - **National Coverage**: Complete coverage of peninsular Spain, Balearic Islands, Canary Islands (except Basque Country and Navarre)
@@ -159,10 +192,14 @@ See [Use Cases & Applications](docs/use-cases-applications.md) for detailed desc
159
192
 
160
193
  ## 🏗️ Advanced Features
161
194
 
162
- - **Building Inference Engine**: Advanced geometric analysis, floor footprint calculation, orientation analysis
195
+ - **Building Inference Engine**: Advanced geometric analysis, floor footprint calculation, orientation analysis, shadow and terrain analysis
163
196
  - **Multi-source Integration**: Cadastral, census, elevation, postal, and OpenStreetMap data
164
197
  - **CAT Files Support**: Detailed building space classification from official cadastral CAT format
165
- - **Energy Simulation Ready**: Export formats compatible with building energy simulation tools
198
+ - **Energy Simulation Ready**: Export formats compatible with building energy simulation tools (EnergyPlus IDF via hc.energy.build_energy_model)
199
+ - **POI Proximity Analysis**: Points of interest from OpenStreetMap with distance-based indicators
200
+ - **Socioeconomic Layer**: INE indicators via `social_ES` joined at the finest geographic level (`merge(social_ES_layer=True)`), with English-keyed `ec__*` Essential-Characteristics downscaling when CAT files are used
201
+ - **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
202
+ - **Commercial Premises Analysis**: Barcelona-specific ground floor commercial data
166
203
 
167
204
  ## 👥 Authors & Contributors
168
205
 
@@ -182,4 +219,4 @@ This project is licensed under the **EUPL v1.2**. See the [license](https://join
182
219
 
183
220
  *hypercadaster_ES - Built with ❤️ for the Spanish urban analysis and building research community*
184
221
 
185
- *Last updated: August 2025 | Version 1.0.0*
222
+ *Last updated: July 2026 | Version 1.1.0*
@@ -1,23 +1,26 @@
1
1
  # hypercadaster_ES
2
2
 
3
- A comprehensive Python library for downloading, processing, and analyzing Spanish cadastral data with integration of external geographic datasets.
3
+ A comprehensive Python library for downloading, processing, and analyzing Spanish cadastral data with integration of external geographic datasets and EnergyPlus model generation.
4
4
 
5
5
  [![Python Version](https://img.shields.io/badge/python-3.10+-blue.svg)](https://python.org)
6
6
  [![License](https://img.shields.io/badge/license-EUPL%20v1.2-blue.svg)](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)
7
- [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://github.com/BeeGroup-cimne/hypercadaster_ES)
7
+ [![Version](https://img.shields.io/badge/version-1.1.0-green.svg)](https://github.com/BeeGroup-cimne/hypercadaster_ES)
8
8
 
9
9
  ## 🎯 Overview
10
10
 
11
- **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, and performing advanced building analysis including geometric inference, orientation analysis, and energy simulation data preparation.
11
+ **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).
12
12
 
13
13
  ### Key Features
14
14
 
15
- - 🏘️ **Comprehensive Cadastral Data Access**: Download building, parcel, and address data from Spanish cadastral services
15
+ - 🏘️ **Comprehensive Cadastral Data Access**: Download building and parcel data from the Spanish Cadastre, and nationwide address points from CartoCiudad (CNIG)
16
16
  - 🗺️ **Multi-source Data Integration**: Merge with census tracts, postal codes, elevation models, and OpenStreetMap data
17
- - 🏗️ **Advanced Building Analysis**: Geometric inference, floor footprint calculation, and building space classification
18
- - 📊 **Orientation & Environmental Analysis**: Building orientation analysis, street relationships, and shadow calculations
19
- - 🔌 **External Tool Integration**: Export capabilities for building energy simulation tools
20
- - 📈 **Scalable Processing**: Optimized for large-scale municipal and provincial analysis
17
+ - 🧮 **Socioeconomic Enrichment**: INE indicators via `social_ES` (income atlas, population, education, rental & housing prices, electricity) joined per building, plus per-building Essential-Characteristics downscaling
18
+ - 🌦️ **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
19
+ - 🏗️ **Advanced Building Analysis**: Geometric inference, floor footprint calculation, building space classification, shadow analysis
20
+ - 📊 **Orientation & Environmental Analysis**: Building orientation analysis, street relationships, shadow calculations, terrain analysis
21
+ - 🔌 **External Tool Integration**: Export capabilities for building energy simulation tools (EnergyPlus via eppy+geomeppy)
22
+ - 📈 **Scalable Processing**: Optimized for large-scale municipal and provincial analysis with DuckDB persistence
23
+ - ⚡ **Memory Efficient**: Central DuckDB database reduces memory footprint; heavy BLOB columns loaded on demand
21
24
 
22
25
  ## 📚 Documentation
23
26
 
@@ -26,12 +29,10 @@ A comprehensive Python library for downloading, processing, and analyzing Spanis
26
29
  - [**Configuration & Examples**](docs/configuration-examples.md) - Advanced configuration and example workflows
27
30
 
28
31
  ### Library Reference
29
- - [**Library Structure**](docs/library-structure.md) - Detailed module documentation and function reference
32
+ - [**Library Structure**](docs/library-structure.md) - Module overview and key entry points
30
33
  - [**Data Sources & Coverage**](docs/data-sources-coverage.md) - Available datasets and geographic coverage
31
34
  - [**Output Data Schema**](docs/output-schema.md) - Complete data structure and column reference
32
-
33
- ### Applications & Use Cases
34
- - [**Use Cases & Applications**](docs/use-cases-applications.md) - Real-world applications and case studies
35
+ - **API Reference** - Generated from docstrings with [pdoc](https://pdoc.dev): run `./scripts/build_api_docs.sh` and open `docs/api/index.html`
35
36
 
36
37
  ### Development
37
38
  - [**Contributing**](docs/contributing.md) - How to contribute to the project
@@ -39,7 +40,7 @@ A comprehensive Python library for downloading, processing, and analyzing Spanis
39
40
 
40
41
  ## 🚀 Quick Start
41
42
 
42
- ### Installation
43
+ ### Library installation
43
44
  ```bash
44
45
  pip install hypercadaster-ES
45
46
  ```
@@ -51,11 +52,30 @@ import hypercadaster_ES as hc
51
52
  # Download data for Barcelona municipality
52
53
  hc.download("./data", cadaster_codes=["08900"])
53
54
 
54
- # Merge all data into a unified GeoDataFrame
55
+ # Merge all data into a unified GeoDataFrame (persisted to building_results.duckdb internally)
55
56
  gdf = hc.merge("./data", cadaster_codes=["08900"])
56
57
 
57
- # Save results
58
- gdf.to_pickle("barcelona_data.pkl", compression="gzip")
58
+ # Optional: save the GeoDataFrame for later use (e.g., as Parquet or pickle)
59
+ gdf.to_parquet("./data/barcelona_data.parquet") # or to_pickle(..., compression="gzip")
60
+ ```
61
+
62
+ ### Accessing Results via DuckDB
63
+ The central `building_results.duckdb` is the canonical artifact. Query
64
+ directly instead of materialising full GeoDataFrames:
65
+
66
+ ```python
67
+ # Read inferred indicators from DB (returns pandas DataFrame)
68
+ br = hc.utils.read_br_inferred_indicators("08900", "./data")
69
+
70
+ # Fetch heavy shadow/terrain columns for one building (on demand)
71
+ heavy = hc.utils.get_heavy_columns_for_building(
72
+ "./data", "08900", "8341105DF2884A"
73
+ )
74
+
75
+ # Access other tables via ResultsHandle (advanced)
76
+ from hypercadaster_ES import _db
77
+ handle = hc.ResultsHandle("./data/results/building_results.duckdb", "08900")
78
+ spaces_df = handle.sbr_to_pandas() # space-level results
59
79
  ```
60
80
 
61
81
  For detailed installation instructions and advanced examples, see [Installation & Quick Start](docs/installation-quickstart.md).
@@ -63,12 +83,10 @@ For detailed installation instructions and advanced examples, see [Installation
63
83
  ## 🎯 Key Applications
64
84
 
65
85
  - **Urban Planning & Municipal Management**: Building stock analysis, zoning compliance, infrastructure planning
66
- - **Energy & Environmental Analysis**: Building energy modeling, solar potential assessment, carbon footprint analysis
86
+ - **Energy & Environmental Analysis**: Building energy modeling, carbon footprint analysis
67
87
  - **Real Estate & Economic Analysis**: Property valuation, market analysis, location intelligence
68
88
  - **Academic Research**: Urban geography, transportation research, social sciences applications
69
89
 
70
- See [Use Cases & Applications](docs/use-cases-applications.md) for detailed descriptions and examples.
71
-
72
90
  ## 📊 Geographic Coverage
73
91
 
74
92
  - **National Coverage**: Complete coverage of peninsular Spain, Balearic Islands, Canary Islands (except Basque Country and Navarre)
@@ -77,10 +95,14 @@ See [Use Cases & Applications](docs/use-cases-applications.md) for detailed desc
77
95
 
78
96
  ## 🏗️ Advanced Features
79
97
 
80
- - **Building Inference Engine**: Advanced geometric analysis, floor footprint calculation, orientation analysis
98
+ - **Building Inference Engine**: Advanced geometric analysis, floor footprint calculation, orientation analysis, shadow and terrain analysis
81
99
  - **Multi-source Integration**: Cadastral, census, elevation, postal, and OpenStreetMap data
82
100
  - **CAT Files Support**: Detailed building space classification from official cadastral CAT format
83
- - **Energy Simulation Ready**: Export formats compatible with building energy simulation tools
101
+ - **Energy Simulation Ready**: Export formats compatible with building energy simulation tools (EnergyPlus IDF via hc.energy.build_energy_model)
102
+ - **POI Proximity Analysis**: Points of interest from OpenStreetMap with distance-based indicators
103
+ - **Socioeconomic Layer**: INE indicators via `social_ES` joined at the finest geographic level (`merge(social_ES_layer=True)`), with English-keyed `ec__*` Essential-Characteristics downscaling when CAT files are used
104
+ - **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
105
+ - **Commercial Premises Analysis**: Barcelona-specific ground floor commercial data
84
106
 
85
107
  ## 👥 Authors & Contributors
86
108
 
@@ -100,4 +122,4 @@ This project is licensed under the **EUPL v1.2**. See the [license](https://join
100
122
 
101
123
  *hypercadaster_ES - Built with ❤️ for the Spanish urban analysis and building research community*
102
124
 
103
- *Last updated: August 2025 | Version 1.0.0*
125
+ *Last updated: July 2026 | Version 1.1.0*
@@ -0,0 +1,42 @@
1
+ """
2
+ hypercadaster_ES: A Python library for Spanish cadastral data processing.
3
+
4
+ This library provides comprehensive tools for downloading, processing, and merging
5
+ Spanish cadastral data with external geographic datasets including census tracts,
6
+ postal codes, elevation models, and Barcelona open data.
7
+
8
+ Main functionality:
9
+ - Download cadastral data for specified provinces/municipalities
10
+ - Merge with external geographic and administrative datasets
11
+ - Building inference and analysis capabilities
12
+ - Export capabilities for external simulation tools
13
+
14
+ Examples:
15
+ Basic usage:
16
+ >>> import hypercadaster_ES as hc
17
+ >>> hc.download("./data", province_codes=["08"])
18
+ >>> gdf = hc.merge("./data", province_codes=["08"])
19
+ """
20
+
21
+ # Minimal top-level API. Everything else is reached through the submodules
22
+ # (e.g. hc.utils.ine_to_cadaster_codes, hc.mergers.aggregate_to_grid,
23
+ # hc.energy.build_energy_model, hc.weather.municipality_epw).
24
+ from .functions import download, merge
25
+ from ._db import ResultsHandle
26
+ from . import (mergers, utils, building_inference, downloaders, interoperability,
27
+ energy, weather, social)
28
+
29
+ __version__ = "1.2.2"
30
+ __author__ = "Jose Manuel Broto Vispe"
31
+ __email__ = "jmbrotovispe@gmail.com"
32
+
33
+ # Docstrings across the package are written in NumPy style; tell pdoc so it
34
+ # renders the Parameters/Returns sections as proper lists rather than plain text.
35
+ __docformat__ = "numpy"
36
+
37
+ __all__ = [
38
+ # Top-level API
39
+ "download", "merge", "ResultsHandle",
40
+ # Submodules (this order drives the API-docs index)
41
+ "downloaders", "energy", "interoperability", "mergers", "social", "utils", "weather",
42
+ ]