Description Usage Arguments Author(s) Examples
Add a Polygon shapefile and raster image.
1 | ExValue_from_Polyshp(ras_img, poly_shp, res_Col_name)
|
ras_img |
Raster image |
poly_shp |
Polygon shapefile with class info |
res_Col_name |
Name of the colomn contain class id's |
Subhadip Datta
1 2 3 4 5 6 | library(raster)
library(ExtractTrainData)
ras_img<-brick(system.file("extdata","ras.tif",package = "ExtractTrainData"))
poly_shp<-shapefile(system.file("extdata","poly_shp.shp",package = "ExtractTrainData"))
res_Col_name<-"Id"
ExValue_from_Polyshp(ras_img,poly_shp,res_Col_name)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.