Fix #1330 - Extents to dataset not respected.
Merge pull request #1331 from timlinux/develop

Fix #1330 - Extents to dataset not respected.