I am generating a number of plots in Matlab. I want to overlay these over maps I have created in QGIS. I thought the best way would be to import the maps as a geotiff into Matlab and then overlay my plots over the image. I have saved the project as an image, generating a tiff and a tiffw file.
I got stuck trying to import and display the tiff and tiffw file in Matlab. I am working with QGIS 2.10.1 and Matlab R2012b.
Here is what i have tried so far:
Matlab has a
geotiffread() function to read geotiff files. Using this function to read the .tiff produces the following error.
Error using geotiffinfo>readinfo (line 259) The file 'GeoTest.tiff' does not contain any GeoTIFF Tags. Use the function IMFINFO to obtain information about the file.
I was able to import the .tiffw file into matlab using the code.
filename = 'GeoTest.tiff'; RGB = imread(filename); worldFileName = getworldfilename(filename); R = worldfileread(worldFileName, 'planar', size(RGB))
But still have to figure out how to put that into a figure together with my plot.