Ignore things on the border for determining ground profile