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