[R-sig-Geo] Import a GeoTIFF file and plot it on a map with lat-long coordinates - RESOLVED

Amelie LESCROEL Amelie.LESCROEL at cefe.cnrs.fr
Thu Oct 3 12:02:16 CEST 2013


Right, this is actually what I did, following your code. I used the .jpg file to get the projection and applied it to the .tif file.
Amélie

-----Message d'origine-----
De : b.rowlingson at gmail.com [mailto:b.rowlingson at gmail.com] De la part de Barry Rowlingson
Envoyé : jeudi 3 octobre 2013 11:32
À : Amelie LESCROEL
Cc : r-sig-geo at r-project.org
Objet : Re: [R-sig-Geo] Import a GeoTIFF file and plot it on a map with lat-long coordinates - RESOLVED

On Thu, Oct 3, 2013 at 10:04 AM, Amelie LESCROEL <Amelie.LESCROEL at cefe.cnrs.fr> wrote:
> Thanks a lot for your solution, which works perfectly well, Barry. I should have worked with the .jpg rather than the .tif file to be able to read the projection and explore the function projectRaster(). Now, I just have to fiddle with the graphical parameters so that the y axis is not too far on the left from the image border.

The jpg is likely to be 'lossy', so if you care about the raw data values you probably need to work with the tiff data (unless thats been compressed with a lossy algorithm!).

Barry



More information about the R-sig-Geo mailing list