I solved both cases of the previous email.
If you want to buffer starting from a specified distance stored in a field,
please have a look on this post [0] (written by me):
[0] https://howtoinqgis.wordpress.com/2016/11/28/how-to-buffer-v
ectors-from-fields-in-qgis-using-python/
If you want to dire
Don't worry for the delay...
Your goal is to generate the buffer a priori (i.e. by assigning a
specific value of radius for each feature, without any preliminary
edit on the layer) or by searching for it in a field of the layer
(i.e. as Randal Hale suggested)?
Marco
2016-11-27 18:54 GMT+01:00 Azzu
Dear Marco, apologies to write you only now.
Yes with variable distance buffer is fine. Thanks a lot.
If you can, could you please write me the PyQgis script for the other
option?
all regards, Azzurra
2016-11-16 9:22 GMT+01:00 Marco Grisolia :
> If you want to assign a specified buffer for each
In the processing Toolbox there is a tool called Variable Distance Buffer.
If you add a field to your data giving each type a width (field called
bufferwidth and it is 10, 20, 30 , 40 meters for each type) - you can
use that tool to automatically buffer each fault accordingly.
Good Luck!
Ran
If you want to assign a specified buffer for each kind of feature, you
may use a simple PyQGIS script using a call of buffer() from
QgsGeometry(). Are you able to do it? Otherwise I may try to write it
for you if my understanding of the problem was right.
Therefore, if your buffer distances are ins