【发布时间】:2017-05-05 15:03:54
【问题描述】:
我想在顶部绘制一个带有 shapefile 点的栅格图层。 我已经检查了以前的答案,但我仍然有问题。 我可以毫无问题地分别绘制点 shapefile 和栅格图层,但不能一起绘制。
据我所知,它们应该在相同的投影和位置。
require(maptools)
myproj <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
shape <- readShapeSpatial("directory/mypoints.shp", proj4string = CRS(myproj))
plot(r <- raster(listVI[200]))
plot(shape)
【问题讨论】: