Suivi Carto
Internal EDF tool that turns land-mapping data kept in Excel files into interactive web maps, with automated operational monitoring (error logging, email reports, exclusion of faulty files).
Context
Built at EDF within the PFA team as part of a work-study assignment (3iL). The core constraint set at kickoff: change nothing in the land agents' habits, so they keep working from their existing Excel files. The tool therefore had to stay completely transparent to the end user.
Approach
Three Python scripts (Python 3.11), chainable through a batch file, scan EDF's Atlas server, detect the mapping Excel files, validate them, then convert each site sheet into an interactive Leaflet web page backed by GeoJSON files. Notable technical points: a centralized error-handling class (real-time logging, automatic report sent through Outlook), reading Excel files even when locked, automatic Lambert 93 and WGS84 coordinate conversion, and encryption of site names in the output.
Results
Evolution from a V1 to an industrialized V3: greatly improved robustness (from 85 generic error-catch blocks down to 3 targeted ones, reading of locked files, safeguards on geometries), expanded documentation (from 4 to 109 docstrings), automatic exclusion of overly faulty files, and duplicate detection. The project was validated by an 82-case test book before going live, then closed and delivered to the team.