Re: [R] To overlay my raster and its boundary

2012-03-22 Thread Michael Sumner
plot(test1, add = TRUE) But, that assumes the test1 object read from shapefile is using the same coordinate system as the raster, and that it shares at least some of the same extent. If they are in different coordinate systems (projection) one or the other must be transformed, if they don't

Re: [R] To overlay my raster and its boundary

2012-03-22 Thread Komine
Hi, Thank Michael, I resolved my problem with your help. the projections of the layers were the same. Ok for reading the posting guide and . R sig geo list. -- View this message in context: http://r.789695.n4.nabble.com/To-overlay-my-raster-and-its-boundary-tp4493705p4494900.html Sent from

[R] To overlay my raster and its boundary

2012-03-21 Thread Komine
Hi I want to overlay my raster and its boundary which is a shapefile. When I used thise code separately, all is ok: # Open raster Image-read.table(C:\\Users\\Documents\\Nouveau\\Frequence.txt,sep=,dec=,,header=TRUE) testo-rasterFromXYZ(Image) plot(testo) testo2 -