search for: rastervolume

Displaying 1 result from an estimated 1 matches for "rastervolume".

2023 Nov 20
1
Calculating volume under polygons
...sg, call)) : error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': sp supports Z dimension only for POINT and MULTIPOINT. use `st_zm(...)` to coerce to XY dimensions # Calculate the volume of each polygon volumes <- sapply(values, function(x) rasterVolume(x, r)) # Print the results for (i in 1:length(volumes)) { cat(sprintf("Volume under polygon %d: %f\n", i, volumes[i])) } ########################################################################################## -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative...