GeoTiff export with test

This PR is the first candidate for merging.