I am not exactly sure how to describe this. I need to find out what the greatest height is between the perimeter of polygons I have and a point within the polygon that "stands up higher" than anywhere else in the area. But it is not nessisarily the shallowest point because my polygons are on a slope. So I want to find the heightest local maximum I guess. See the very crude drawing I attached. I am trying to find the length of the red line in B, for a maximum point within the polygon, even though it isn't the heightst point. I need to automate this for various polygons in my dataframe. I thought about it like I was roting the slope so it was level, and THEN trying to find what was the highest point. I believe depending on how far the point is from the perimeter, the height changes more or less when rotated. So I was not sure how to do this or even how to google it.
We originally thought we could find the maximum height in the polygon overall and then substract from that value the average perimeter of the polygon, but that does not work. The maximum height is usually at the top part of the slope (so not the point in the triangle in my picture but the start of the slope (upper left most point).
Does anyone have some suggestions?