I have a raster area which i could also convert into a vector area. I need all cells which lie in direct vicinity of the edge(s).
My first try was to convert the vector area to lines and then the resulting border line back to raster. The problem with this approach is that i won't get all border cells- but instead just some and spaces in between (see picture).
Any better idea how to solve my issue?