Skip to main content

All Questions

Tagged with
0 votes
0 answers
221 views

R terra cannot create SpatVector from sf MULTILINESTRING if line contains only single point

I have an MULTILINESTRING sf that appears to be ok (see dput below), but when I try and convert it to a SpatVector using pv <- terra::vect(test2) I get the error: Error: [as,sf] coercion failed. ...
DarwinsBeard's user avatar
0 votes
2 answers
157 views

subset raster to separate two classes

I have a raster that is too large to post here but can be downloaded from here: https://login.filesanywhere.com/fs/v.aspx?v=8c6c688b586472bcab6a . When I plot it I see a mix of water and land. I would ...
Salvador's user avatar
  • 1,467
2 votes
1 answer
443 views

Create Polygons by Category in sf file R

I have a large set of coordinates from the critical and endangered habit federal registry. I'm trying to digitize these maps for analysis. Here's a sample of the data as an example. library(tidyverse) ...
JulietheFoodie's user avatar
3 votes
4 answers
1k views

How to compute all pairwise interaction between polygons and the the percentage coverage in R with sf?

I have polygons where I want to calculate the percentage overlap between them. The idea is that when a polygon intersects another one, the percentage can be calculated on the perspective of one ...
M. Beausoleil's user avatar