Local height transformation through polynomial regression