`tmpExtent` doesn't seems to be used (?)