All projects

Python Script

JOSM PNG Calibration File Rotation Tool

Modifies transformation matrices within JOSM .png.cal calibration files to apply rotation adjustments without requiring a complete recalibration. Supports single-file, batch-by-pattern, and rotate-all modes with interactive direction and degree controls.

Challenge

Rotating a calibrated map image in JOSM normally requires recalibrating from scratch, which is time-consuming for large multi-floor sites.

Approach

Built a script that directly modifies the 2D rotation matrix within .png.cal files. An interactive menu offers Single, Multiple (by naming pattern), and All modes with clockwise/counter-clockwise control.

Outcome

Eliminated the need to recalibrate after rotation, saving significant time on multi-floor indoor mapping projects.

Tools & Stack