[R-sig-Geo] writing tiff/geotiff in R
Roger Bivand
Roger.Bivand at nhh.no
Wed Jun 11 15:23:51 CEST 2008
On Wed, 11 Jun 2008, Laura Poggio wrote:
> Dear list,
> I managed to read an image in R and to make various elaborations on it,
> mainly clustering. Now I would like to save the results I got as tiff or
> geotiff.
> I found a lot of different examples, but none seems to work.
> Any suggestions on tutorials or code examples for saving clustering results
> as tiff?
First you need to make your object into a SpatialGridDataFrame, then
writeGDAL in rgdal simply works. But you need to say what structure your
object has - matrix or vector etc. Then define a GridTopology object to
suit, add a coordinate reference system if appropriate. Maybe the sp
package function image2Grid() will help?
Roger
>
> Thank you very much in advance
>
> LP
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list