ExtractByPoint: Add a Point shapefile and raster image.

View source: R/code2.R

ExtractByPointR Documentation

Add a Point shapefile and raster image.

Description

Add a Point shapefile and raster image.

Usage

ExtractByPoint(img, point.shp, In.colName, Out.colName)

Arguments

img

Raster image

point.shp

Point shapefile with class info

In.colName

Name of the column contain point id's

Out.colName

Name of the output column contain point id's

Author(s)

Subhadip Datta

Examples

library(raster)
library(ExtractTrainData)
img<-brick(system.file("extdata","ras.tif",package = "ExtractTrainData"))
point.shp<-shapefile(system.file("extdata","poin.shp",package = "ExtractTrainData"))
Out.colName<-In.colName<-"Id"
ExtractByPoint(img,point.shp,In.colName,Out.colName)

ExtractTrainData documentation built on May 31, 2023, 7:56 p.m.