I have a "problem", I need transform a raster in a vector and it works but some pixels like the one in the print it is separated from the boundary, and for my use (a specific use of hypsometric curves) this cannot happen, I already tried to use 8 connectedness, but the error appears that the geometry of feature 0 is invalid. Is there any way for me to extract the limits of a raster and transform it into a vector, with a common limit?
buffer(0)