Description Usage Arguments Details Value Examples
Get cell number(s) of a Raster* object from line objects.
1 | cellFromLine(object, lns)
|
object |
Raster* object (or a SpatialPixels* or SpatialGrid* object) |
lns |
sf (linestring or mutlilinestring) or SpatialLines object |
See cellFrom
for more details.
a list of cell numbers
1 2 | x <- read_sf(system.file("shape/nc.shp", package="sf"))
cellFromLine(raster(x), st_cast(x[1:2, ], "MULTILINESTRING"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.