You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using terra::extract with x = SpatRaster and y = SpatVector, and both cell = T and xy = T, I noticed that the produced x and y are identical to the x and y of the SpatVector, and not the center of the SpatRaster cells. Running xFromCell and yFromCell on the cell IDs produced by the terra::extract function does produce the correct x and y that are the center of the cells.
The text was updated successfully, but these errors were encountered:
When using
terra::extract
with x = SpatRaster and y = SpatVector, and both cell = T and xy = T, I noticed that the produced x and y are identical to the x and y of the SpatVector, and not the center of the SpatRaster cells. RunningxFromCell
andyFromCell
on the cell IDs produced by theterra::extract
function does produce the correct x and y that are the center of the cells.The text was updated successfully, but these errors were encountered: