数据下载地址:
https://raw.githubusercontent.com/joaofgoncalves/R_exercises_raster_tutorial/master/data/srtm_pnpg.zip
https://raw.githubusercontent.com/joaofgoncalves/R_exercises_raster_tutorial/master/data/BOUNDS_PNPG.zip
https://raw.githubusercontent.com/joaofgoncalves/R_exercises_raster_tutorial/master/data/CIVPARISH_PNPG.zip
https://raw.githubusercontent.com/joaofgoncalves/R_exercises_raster_tutorial/master/data/legend_clc.csv
https://raw.githubusercontent.com/joaofgoncalves/R_exercises_raster_tutorial/master/data/CLC_06_12.zip
library(sp)library(rgdal)library(raster)#数据解压在以下目录中setwd("F:/test")rst "./srtm_pnpg/srtm_pnpg.tif")maskLayer as(readOGR(dsn = plot(rst, main="Elevation (meters) for Peneda-Geres\n NationalPark", xlab="X-coordinates", ylab =