# How to creat multiple rings between two circular buffers?

I am working with mathematical-ecological modeling and I am also a new user of QGIS Software. First I am creating 3 circular buffers with same center (shape center) covering a region with roads (shape roads), so I have initialy two shapes and after I create 3 circular buffers. All mathematical work I use R software to produce the number of intermediary rings and distances with each these intermediary rings that will be between the pair of main circular buffers.

My firsts questions are: How could I create automated the process of rings or buffers between the main circulars buffers? Are there scripts or other solution for this?

My second and last: I have roads crossing the buffers and in case of creation of rings (or intermediary buffers) how could I calculate the length of the roads between the two intermediary rings?

UPDATE

The problem is the rings made with a non automate process and also made in atribute table. So I wish make together the automate process with the calculation of the roads that cross the pair of rings. Using R like you said it is possible, but I would like to know the both process because it will be better to know how will be more easy for me. it is my first work with QGIS.

• Welcome to GIS.se. I'm not sure I understand your question - is there any chance you can add a diagram that shows examples of what you are trying to do? Also, this site format is Q&A, which works better if you ask only one question per post. I'd suggest that you update your question (just click edit below the question) to include only one sentence that ends with a question mark - in your case, the first questions can be easily folded into a single question, and the second held over for a second question, which would link to this question. May 4, 2014 at 20:58
• Also, you don't need to sign your question - every post gets your name below it, which you can see above. So you can remove that when you edit. May 4, 2014 at 20:59

You can automate tasks in QGIS using the graphical modeller or python scripts. Both work fine and you can find nice documentations to it. If you already work with R it may be handy for you to perform the GIS-Parts in R too. The rgeos and rgdal packages should have all the tools you need (`readOGR(), gBuffer()`). If you know how you want to solve this task you can get additional Help.

To make it a bit easyer I wrote a little Buffer-Loop in R for you:

``````require(rgeos)
require(rgdal)

distances <- seq(1000,2000,100)
buffers <- list()
plot(points)
for(i in distances){
buffers[as.character(i)] <- gBuffer(points, width=i)
You can export the Buffers using `writeOGR()` if you like, but you can also keep working in R.