ExtractByLine | R Documentation |
Add a Line shapefile and raster image.
ExtractByLine(img, line.shp, In.colName, Out.colName)
img |
Raster image |
line.shp |
Line shapefile with class info |
In.colName |
Name of the column contain line id's |
Out.colName |
Name of the output column contain line id's |
Subhadip Datta
library(raster)
library(ExtractTrainData)
img<-brick(system.file("extdata","ras.tif",package = "ExtractTrainData"))
line.shp<-shapefile(system.file("extdata","lines.shp",package = "ExtractTrainData"))
Out.colName<-In.colName<-"Id"
ExtractByLine(img,line.shp,In.colName,Out.colName)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.