All Questions
80
questions
0
votes
1
answer
73
views
Problem creating dynamic Alpha Hull for multiple groups
how are you? I would like your help, please, to create alpha polygons in R for different groups. I would like these polygons to be separated by my "species" column.
I understand that the ...
0
votes
1
answer
136
views
R filling in a matrix with values from spatial data
I have a matrix in R called “habitat” with latitude as the rownames and longitude as the column names. The cells are filled with NA right now. My end goal is to have the whole matrix filled with ...
2
votes
1
answer
102
views
Can I create a series of polygons for diferent categories (minimum convex polygon) on R (sf package)
I'm working with spatial information (sf) in R, and I have a list of species with their respective occurrence points.
I would like to obtain a polygon for each species using the st_convex_hull ...
2
votes
1
answer
183
views
R plotly duplicated values as text in add_sf for customised maps
I am plotting customised maps with plotly using add_sf with a sf object. Here is the structure of the sf object (CdE_Aff2), with 53 polygons (or observations). I do not know how to produce a "...
3
votes
1
answer
105
views
Connect multiple polygons from the same shapefile
I want to connect ALL the states drew from a sample of states of USA with a thin line exactly how it is done in this post.
I did manage to draw some lines between some polygons but I did not manage to ...
0
votes
2
answers
100
views
Select a random point along the longest edges of a polygon
I have a shapefile that consists of many polygons representing fields on a farm. For field sampling in real life, I need to walk a 50m transect along one of the 2 longest sides of each field (polygon)....
2
votes
2
answers
491
views
Merging small polygons with largest neighbour in R
I have a bunch of polygons representing land cover classes, however I don't need this much detail. I would like to merge small polygons (ie < 150m2) with it's largest neighbour. This would be ...
-1
votes
1
answer
127
views
fill polygon with points in R
I have a polygon which I would like to put some point on its perimeter and inside, with minimum distance as constraint.
here is my shape file :
sh = structure(list(farmId = "NO39", Name ...
0
votes
1
answer
96
views
Generating point on polygon border with minimum distance constrain in r
I have seen this solution to generate random point on polygon's border. I was wondering how I could add a minimum distance constrain to this solution ?!
For example :
len <- st_length(st_cast(nc_p,&...
0
votes
1
answer
158
views
transform a polygon class sf to class owin in r
My polygon has the following structure:
t1 = structure(list(WindfarmId = "NO39", Name = "Sørlige Nordsjø I",
Country = "NO", Status = 99L, WindfarmStatus = "...
1
vote
2
answers
207
views
Removing the outlines of polygon islands within holes when using smoothr's fill_holes
I am joining multiple adjoining polygons together and removing any holes from the now single polygon using fill_holes in smoothr. However, if a hole has another polygon (or island) within it, the ...
1
vote
0
answers
236
views
Creating a polygon from four linestrings
I have three linestrings and one multilinestring that intersect that I want to create a polygon within the boundaries of the four lines. Here's what the geometry looks like:
Two of the lines are just ...
-1
votes
3
answers
450
views
maps package in R: Where is geometry data stored?
I did quite a lot of research and did not find an answer to the following questions regarding the maps package in R:
(EDIT: I did not notice that it only works with ggplot2, as I still had this ...
0
votes
0
answers
129
views
Crop a raster by a list of sfc_polygons
I want to crop a land use raster by 16 polygons, which are 2km-buffers around agricultural fields.
My usual way of dealing with this (crop and mask, see code below) did not work, as my polygons are a ...
1
vote
1
answer
568
views
Grouping polygons and neighbours based on distance criteria
I would like to group polygons together based on a distance criteria:
Any polygon within a certain distance (1200 metres or less) of an origin polygon are grouped together
If other polygons are ...