ExValue_from_Polyshp: Add a Polygon shapefile and raster image.

Description Usage Arguments Author(s) Examples

Description

Add a Polygon shapefile and raster image.

Usage

1
ExValue_from_Polyshp(ras_img, poly_shp, res_Col_name)

Arguments

ras_img

Raster image

poly_shp

Polygon shapefile with class info

res_Col_name

Name of the colomn contain class id's

Author(s)

Subhadip Datta

Examples

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)

SubhadipDatta/ExtractTrainData documentation built on June 26, 2020, 9:57 a.m.