Skip to main content

All Questions

Tagged with
0 votes
1 answer
66 views

Generating polygons with a target area from points using st_buffer

I have some point geometries which I want to turn into polygons using st_buffer. For each point I have a target area that the resulting polygon should have. Here's an example using R: library(sf) # ...
karpfen's user avatar
  • 2,317
0 votes
1 answer
432 views

Buffers around linestrings have weird shapes (sf in R)

Update 10.11.23 Question (1) has been resolved, but answering question (2) is still in progress. Original Post I am trying to create buffers around (multi)linestrings representing international land ...
jccborders's user avatar
3 votes
1 answer
160 views

How to subtract buffers of identical ID in R (terra)?

For a research project, I need to define treated and control areas around land parcels, located by coordinates and uniquely identified by an ID. The treated areas consist of disk-shaped buffers around ...
bazoonga's user avatar
1 vote
1 answer
189 views

Select buffers that do not overlap

I have a dataset with amenities. I've created a buffer of 200 meters around each amenity. m_circles <- st_buffer(m, dist = 200) It looks like this: How can I keep only the buffers (polygons) that ...
Daniel AG's user avatar
1 vote
0 answers
179 views

Calculate road density within buffers in R [closed]

I am running the following code to calculate road density within buffers, first I thought It was working great, but then did a few reality checks, where the code has given more than 1 as density and ...
Loon's user avatar
  • 11
1 vote
0 answers
178 views

Calculate distance to all polygons within a buffer/radius in R

I have 2 data sets, one with polygons and one with points. My goal is to find the distance between each point and all polygons that are within a radius of 16 km using R. The data set is very large (2 ...
vivivi's user avatar
  • 65
1 vote
3 answers
141 views

Forest patch centroids are not located in patches using landscapemetrics in R

I am using the R package landscapemetrics to find forest patch centroids in a landscape. The given function to find patch centroids is get_centroids(). The centroids returned from get_centroids() are ...
geoscience123's user avatar
0 votes
1 answer
105 views

Enlarging gBuffer width changes polygon shape

I am having some issues with spTransform and the gBuffer function. I basically have a polygon that I want to buffer with gBuffer (not with st_buffer for other reasons). For some reason the shapefiles ...
Lydia's user avatar
  • 9
2 votes
1 answer
141 views

How to assign a coordinate reference system to x (buffer) datasets of x iterations in a for loop - R

My aims are 1) to create different buffer sizes around three points via a for loop, 2) to assign a coordinate system to each buffer for each iteration, and 3) to store each buffer in a list ...
Foeke Boersma's user avatar
1 vote
1 answer
983 views

Drawing a buffer zone on a specified point in R

I want to draw three buffer with 400mt, 800mt and 1200mt on specified map utilizing Open Street Map in R. library(OpenStreetMap) library(ggplot2) library(ggforce) lat1 <- 41.245; lat2 <- 41.26; ...
Huseyin's user avatar
  • 115
0 votes
1 answer
149 views

Buffering spatialpoints and getting raster values from overlapping polygons

I have a spatial points representing eDNA sample. I have a raster file representing surface temperature (RST) I want to extract the surface temperature according to the eDNA sample. So, I decided to ...
Shunrei's user avatar
  • 41
0 votes
0 answers
184 views

How to loop through polygons and apply conditional statements in QGIS?

I am trying to perform calculations on polygon attributes that are based on counts within buffers and conditional statements and for loops. I am trying to decide if it is worth it to try working ...
LostinSpatialAnalysis's user avatar
0 votes
1 answer
114 views

Points within buffer with the same id

I have a buffer layer and a point layer: buffer_gdf ID 0 1A 1 1B 2 1C and point_gdf ID 0 1A 1 1A 2 1A 3 1A 4 1A 5 1B 6 1B 7 1B 8 1B 9 1B ...
ZairaRosas's user avatar
1 vote
1 answer
1k views

Buffer points within sf data frame of mixed geometry types

I have a directory of shape-files with identical data scheme, which I like to read and combine into one layer. Reading in: library(sf) library(dplyr) # create list of file names from directory names....
Bernd V.'s user avatar
  • 3,199
0 votes
2 answers
121 views

How to fill NA values orthogonally to a line raster?

I want to create a buffer for a line raster by filling the NA values orthogonally to each cell. sample data library(raster) r <- raster(resolution=5) values(r) <- 1:ncell(r) cds <- rbind(c(-...
rm167's user avatar
  • 469

15 30 50 per page
1
2 3 4 5 6