Let say, I have a country vector layer like Lebanon in this example, for us as humans we can easly see that the country extends the best not from north to south like Chile, or from east to west like Turkey but oblique from Northeast to Southwest.
If I calculate the centroid of Lebanon C
as in image below, is there an approach or possibility to find the angle theta
between the line passing through C
and the vertical line North-South to fit the best like the orientation of the country?
I drawn the blue lines with paint to show my idea, see image below