extract2 function

Extract raster values by lines or polygons