Posted on :: gis opencv python

Snitcher

Snitcher is a geospatial software pipeline that bridges the Italian Cadastral Cartography (Catasto) and open-source mapping platforms. It extracts high-precision building footprints from the Italian Cadastre via Web Map Service (WMS) layers, vectorises them into topologically valid polygons, and reconciles them against independent building footprints derived from satellite imagery, in order to surface discrepancies between declared and physically existing buildings.

Goals

The project addresses two related problems.

The first is discrepancy detection, informally referred to in the project name as “snitching”: identifying inconsistencies between the buildings recorded in the cadastre and the buildings actually present on the ground. Two classes of discrepancy are of interest. A building that appears in satellite imagery but is absent from the cadastre is a candidate undeclared structure (in Italian regulatory terminology, a potential abusivo). A building that appears in the cadastre but no longer exists in satellite imagery is a candidate demolition or mapping error.

The second is integration with OpenStreetMap (OSM). Cadastral building geometries, once extracted and cleaned, are produced in a form that is topologically compatible with OSM (shared vertices between adjacent buildings, edge subdivision at T-junctions). This makes them a viable foundation for OSM contributions, although the contribution step itself is left outside the current pipeline.

Pipeline overview

The pipeline is organised in four sequential stages. Each stage reads its input from disk and writes a self-contained artefact, which is the input to the next stage. This structure supports reproducibility, partial re-runs, and isolated benchmarking of each stage.

StageScriptRoleOutput
11-downloader.pyCadastral imagery acquisitionGeoTIFF
22-vectorizer.pyRaster vectorisationGeoJSON
33-truth-seeker.pySatellite-derived footprint acquisitionGeoPackage
44-snitcher.pyGeometric reconciliationGeoPackage

Stage 1 fetches cadastral imagery as a georeferenced raster. Stage 2 converts that raster into a clean vector layer of building polygons satisfying OSM topology rules. Stage 3, in parallel and independently of Stage 2, downloads building footprints from OpenBuildingMap as the satellite-derived “truth” layer. Stage 4 matches the two layers and classifies every polygon as matched, partial match, cadastre-only, or satellite-only.