Changelog¶
0.3.0 (2026-12-01)¶
characterize_roofs is now the single entry point: it covers everything
MetadataExtraction did (installed capacity, heuristics without a surface
model), on any input, with roof plane splitting.
Added¶
characterize_roofs(..., capacity=...):installed_capacitycolumn (kWp) from the panel surface,"constant"(1/6.5 kWp/m²),"linear","clustered"(calibrated on the BDPV registry, same coefficients as before) or a coefficient in kWp/m²; one value per roof plane withsplit=True.characterize_roofs(polygons, None, tilt=30): heuristics from the polygon alone, without a surface model: constant tilt, azimuth from the minimum rotated rectangle computed in a metric CRS,elongationcolumn (long side / short side, to filter squarish polygons whose azimuth is arbitrary),status = "heuristic".pypvroof.installed_capacity(surface, method), vectorized, with an optional custom calibration registry (data).pypvroof.heuristics.bbox_azimuth(geoms): rectangle azimuth and elongation of projected geometries.
Removed¶
MetadataExtraction(and themain,methodsandutilsmodules). Usecharacterize_roofs(service=Nonefor the heuristics,capacity=for the installed capacity) andinstalled_capacity.- The look-up table tilt method (
tilt-method: "lut", deprecated in 0.2.0) and the packagedlut_france.json.
Changed¶
- The Gradio demo computes the installed capacity with
capacity="constant".
Documentation¶
- Documentation site (MkDocs Material,
mkdocs serve), with an API reference generated from the docstrings. - Roof plane extraction (
split=True) presented on the home page and in the README, with the Halle de Crémieu as an example (docs/make_roof_planes.py).
0.2.2 (2026-11-29)¶
- Theil-Sen: no more numpy
RuntimeWarning(divide by zero / invalid value) on degenerate pixel subsets; their gradients were already discarded. - DSM services: no more rasterio
NotGeoreferencedWarningwhen a server returns a GeoTIFF without georeferencing (the transform is rebuilt from the requested bbox, as before).
0.2.1 (2026-11-27)¶
- Licence: the LICENSE file now holds the MIT licence, as declared in the package metadata (it still held the GPL v3 text in 0.2.0).
0.2.0 (2026-11-27)¶
Added¶
- Tilt and azimuth measured on a DSM with a new Theil-Sen-type estimator
(
pypvroof.theilsen): plane fits on random pixel subsets, mode detection, pixel assignment, robust to misregistered polygons, chimneys and edges; statuses (ok,flat,multimodal, ...) and diagnostics. - DSM services (
pypvroof.dsm):IGNLidarService(IGN LiDAR HD through the Géoplateforme WMS-R, acquisition metadata from the WFS index) andIGNCorrelService(IGN MNS Correl, derived from the BD ORTHO images) andLocalRasterService(folder of GeoTIFFs). Services return free-form metadata that is passed through to the output. -
Bulk API
characterize_roofs: generic inputs, concurrent processing, GeoDataFrame output, optional splitting of multimodal polygons. -
pypvroof.viz.plot_polygon(extraviz): orthophoto and elevation models under a polygon, with the estimates. - Gradio demo (
app/), deployable as a Hugging Face Space: draw a polygon on a map (computed on the fly, with the split roof planes drawn back on the map) or upload a file; the surface model is chosen from the location (catalog.services_at); national orthophotos as map layers; installed capacity optional ("Extract PV characteristics", off for roof pans). -
GeoJSON files with unclosed rings and self-intersecting polygons are accepted (repaired with
make_valid). -
README simplified, with a new pipeline diagram (
docs/assets/pipeline.png, drawn bydocs/make_diagram.py) and a link to the Hugging Face Space. -
Surface models across Europe: generic
WCSService(WCS 2.0.1 / 1.0.0) andSTACCogService(STAC + Cloud-Optimized GeoTIFFs), and a catalogue of presets usable by name (pypvroof.catalog,available_services()): Netherlands (AHN), Flanders (DHMV II), England (Environment Agency), North Rhine-Westphalia and Mecklenburg-Vorpommern (DOM1), Poland (NMPT), Norway (NHM DOM), Switzerland (swissSURFACE3D). -
IGNLidarServicenow derives fromRemoteDSMService(shared HTTP retries, grid snapping, GeoTIFF decoding). -
Continuous integration (GitHub Actions): offline tests on Python 3.10 and 3.12; network tests on manual runs.
pyarrowis now a dependency (parquet inputs).
Removed¶
- The hands-on notebook (superseded by the demo app) and the old flowchart.
Changed¶
- Azimuth convention: 0 = north, clockwise (was 0 = south).
- Theil-Sen: subsets drawn locally (
subset_radius) and parallel pans detected, so that large roofs with many pans (repeated gables, sheds) are multimodal and split into each pan, instead of being reported flat. Planes sharing an orientation (roof at several heights) are not multimodal. - The
theil-senmethod ofMetadataExtractionuses the new estimator and a DSM service (dsm-service;raster-folderstill accepted). The old implementation (8-bit reload of the DSM, resolution assumed to be 2 m) is removed, as are the GDAL / OpenCV / matplotlib / scikit-learn dependencies. MetadataExtraction.extract_all_characteristicsaccepts any input of the bulk API; installed capacity coefficients are fitted once.
0.1.2 (not released on PyPI, included in 0.2.0)¶
- Production fixes: relative imports, LUT nearest-cell fallback for NaN cells, lazy GDAL import, CSV shipped in the package, complete dependencies.