Use getInExtent instead of forEachInExtent

No functional changes.