Good evening,

have a look at raster::writeRaster in the help page... What you did just
save a plot of your data, not the data themselves...
HTH

Alex


2013/7/2 Komine <momadou@yahoo.fr>

> Dear,
> My objective is to save a raster created with R and to open it with Arcgis
> in maintaining spatial reference.
> I used GPS points (XYZ, spatial reference: WGS 84, UTM) with which I
> created
> a raster following this code:
>
> >
> Image<-read.table("C:\\Users\\Documents\\data.txt",sep="",dec=",",header=TRUE)
> > library(raster)
> > testo<-rasterFromXYZ(Image)
> > map<-plot(testo)
>
> Then, I save the output by clicking < File < save < and to choose format
> (.tif).
> However, When I open the output with Arcgis, it has not spatial reference.
> How to save the output into .tif in maintaining the spatial reference.
> Thank you in advance
> Komine
>
>
>
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/Export-raster-from-R-to-Arcgis-tp7583995.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Alexandre Villers, PhD.
Postdoctoral researcher
Section of Ecology
University of Turku
FIN-20014 Turku, Finland

Phone +358 (0)2 333 5039

	[[alternative HTML version deleted]]

