Swap x and y coordinates
Restrict altitude margins