I am working on a large polygon containing multiple polygons, which requires me to set a buffer in order to perform other analyses. I used R to do the buffer, for example, a -> gBuffer(b, byid = T, width = 0). For most of these polygons, it worked fine. However, there were a few polygons with holes (see the attached figure), these holes were filled after setting the buffer with a width of 0. I tried QGIS to do the same analysis, the result was the same.
Do you have thoughts on this?