Export method to get resolution for extent and size

While this is straightforward to calculate, this method adds convenience.
Merge pull request #2142 from tschaub/res-for-extent

Export method to get resolution for extent and size.