AnsweredAssumed Answered

Restrict buffer to country boundary

Question asked by stebor on May 15, 2017
Latest reply on May 17, 2017 by jayanta.poddar

Hi all,

I have been stuck in this problem for a while and hope you can help me solving it.

My aim is to count incidents, which take place inside a 100 km buffer around a mineral mine. Thereby, it is important that only incidents are counted, which are both: inside the buffer and inside the country the mineral mine is in (for these buffers, which crosses country boundaries).

In particular, I have three shapefiles. One with information on the mineral mines (point information), one with information on the incidents (point information) and the third with information on the country borders (polygons).

I start with the shapefile with the mineral mines and use the buffer tool to define a 100 km circular buffer around each mine. The problem is that some buffers stretch over countries’ boundaries. Therefore, I use the clip tool to restrict the buffers to stay within the country boundary. Finally, I join the clipped file with the incidents shapefile and count for each mine the number of incidents in each buffers.

The problem is that not only incidents in the buffer within the country boundaries, but all incidents in a buffer are counted.

I have enclosed a screenshot of such a typical situation. The green diamond is the mine with its buffer, which crosses a country’s boundary (that is the line) and two incidents: one inside the country boundary of the mine and the other outside. Joining now not only counts this one incident, which is inside the country boundary, but counts both incidents.

I have tried around a lot now, but was not able to solve it. I suspect that it has something to do how I clip the file but I do not really know what the problem is. Maybe some of you have ideas and can help me here! It would be a great help and save me some long frustrating nightly overhours…


Thanks a lot, Stefan