Ahem.
The Roman Church never defined the shape of the Earth. Most people who thought about the issue had understood the world was round since the time of Alexander or earlier.
I never said, or meant, that the RCC said the Earth was flat, but they did hold to a Earth centered solar system and opposing views were heresey