fix elevation sampling
fix off by one error in transform
yeah!
this is important