Function to extract attribute information from vector or raster data layer.

get.attributes(file, coords)

Arguments

file

vector or raster layer

coords

vector containin xmin,ymin,xmax,ymax defing the bounding box for subset

Examples

# NOT RUN {
file <- Sys.glob(file.path(R.home(), 'library', 'PEcAn.data.land','data','*.kml'))
out <- get.attributes(file=file,coords=c(-95,42,-84,47))
print(out)
# }# NOT RUN {
# }