R/method_getCellSize-SpatialPixels.R

setMethod(
    f = "getCellSize",
    signature = signature(
        object = "SpatialPixels"
    ),
    definition = function(object) {
        gridTopology <- getGridTopology(object)
        cellSize <- as(gridTopology, "data.frame")$cellsize
        cellSize
    }
)

Try the spcosa package in your browser

Any scripts or data that you put into this service are public.

spcosa documentation built on April 11, 2023, 6:04 p.m.