The ESA-JAXA mission BepiColombo toward Mercury will be launched in October 2018. On board of the European module, MPO (Mercury Planetary Orbiter), the remote sensing suite SIMBIOSYS will cover the imaging demand of the mission. The suite consists of three channels dedicated to imaging and spectroscopy in the spectral range between 420 nm and 2 μm. STC (STereo Imaging Channel) will provide the global three-dimensional reconstruction of the Mercury surface with a vertical accuracy better than 80 m and, as a secondary scientific objective, it will operate in target oriented mode for the acquisition of multi spectral images with a spatial scale of 65 m along-track at the periherm for the first orbit at Mercury. STC consists in 2 sub-channels looking at the Mercury surface with an angle of ±20° with respect to the nadir direction. Most of the optical elements and the detector are shared by the two STC sub-channels and to satisfy the scientific objectives six filters strips are mounted directly in front of the sensor. An off-axis and unobstructed optical configuration has been chosen to enhance the imaging contrast capabilities of the instrument and to allow to reduce the impact of the ghosts and stray light. The scope of this work is to present the on-ground geometric calibration pipeline adopted for the STC instrument. For instruments dedicated to 3D reconstruction, a careful geometric calibration is important, since distortion removal has a direct impact on the registration and the mosaicking of the images. The definition of the distortion for off-axis optical configuration is not trivial, this fact forced the development of a distortion map model based on the RFM (rational function model). In contrast to other existing models, which are based on linear estimates, the RFM is not specialized to any particular lens geometry, and is sufficiently general to model different distortion types, as it will be demonstrated.