Detect polygons surrounding clip extent.

Also, fix interpolation for points on the same clip edge that need
interpolating the long way around.
Merge pull request #1126 from jasondavies/clip-view

Detect polygons surrounding clip extent.