Use an API function to extend the extent
Merge pull request #3058 from ahocevar/extend-coordinate

Use an API function to extend the extent