Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A region enclosing a point, line, or polygon at a specified distance.
0
votes
2
answers
123
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(-160,-20), c … I tried with raster::buffer(r, width = 25) and created the binary raster, but I don't know what to do next. …
0
votes
1
answer
532
views
Creating a buffer for a line raster using a polygon boundary
I have a raster(plot 1) for which I have to create a buffer zone using a polygon (Plot 2). … I thought I can do this by using raster::buffer and raster::extend, but I realised it's not a straightforward task. …