python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Polygons area is less than polygons using terra in R
I have a set of polygons saved as SpatVector, I'm trying to calculate the area of the polygons with the terra package. The issue is the number of areas is less than the polygons. This behaviour is unp...
ahmathelte
Votes: 0
Answers: 1
Turning a SpatRaster object to a SpatialGridDataFrame
How to convert a SpatRaster object (from the terra package) to a SpatialGridDataFrame object?
r <- terra::rast(matrix(runif(10), 5, 5))
as(r, "SpatialGridDataFrame")
> Error in as(r, ...
Junitar
Votes: 0
Answers: 1
How can I subset a raster by conditional statement in R using `terra`?
I am trying to plot only certain values from a categorical land cover raster I am working with. I have loaded it in to R using the terra package and it plots fine. However, since the original data did...

apple
Votes: 0
Answers: 2
`sp::over()` equivalent in `terra`
Is there an equivalent of sp::over() in package terra? To get a data frame showing which geometries of a SpatVector overlay which geometries of another SpatVector -- like this, but using only terra:
#...
AMBarbosa
Votes: 0
Answers: 2