I don't get this !!! the jpeg has obviously had some sort of correction done on it, as if you look at the houses on the left of frame they are vertical whereas in the raw file they are not. I am not aware of any in camera correction of 'keystone' effect, so that only leaves a raw image with massive 'pincushion' distortion that has somehow been corrected on the jpeg. My understanding was that even the raw file was corrected in camera. Unless the raw file is from a converter which doesn't apply corrections such as Raw Therapee.