Skip to main content

All Questions

Tagged with
1 vote
1 answer
42 views

How to buffer a selected point in PyQGIS

I have a few random points that I generated within a polygon. I randomly selected one of the points and would like to buffer that point. In the case below, buffering will be applied to all points and ...
seak23's user avatar
  • 191
0 votes
1 answer
77 views

PyQGIS layer action: Add buffer from clicked-on feature as temporary layer using materialize

In the workshop material "QGIS Automation using Actions", the first example "1.1 Extract a Feature from a Layer" demonstrates how one can extract any country polygon by clicking on ...
ebcs's user avatar
  • 49
2 votes
2 answers
185 views

Fixing holes in the buffered polygon using PyQGIS

My script uses a buffer and dissolves to create polygons around my points. However, there are holes in between the points. I do not want to increase the distance because then it will also cover the ...
charliey's user avatar
  • 163
1 vote
1 answer
59 views

Looking for QGIS processing script equivalent of ST_Buffer [closed]

I have a shapefile layer containing road data and some of the data has entries for both carriageways, the data only has a road name so no way to distinguish between them. I've created a script that ...
vickirk's user avatar
  • 103
6 votes
1 answer
3k views

Generating single sided buffers on the same side of lines

I have a line and a point layers and trying to find points 100m to the left of each line. The image below shows the single-sided buffer result. As can clearly be seen, one of the buffers is generated ...
Kadir Şahbaz's user avatar
3 votes
1 answer
134 views

For loop to buffer shapefile at multiple distances, add each to the layers window, style & save to geopackage; PyQGIS

Can someone help me straighten this code out. I want to create three buffers, at 100, 250 and 500m respectively and add these to the contents table. I've tried creating a for loop but not having ...
Jinglelocks's user avatar
10 votes
1 answer
3k views

Method for generating wedge buffer in PyQGIS

Is there any method generating a wedge buffer, as in Creating wedge buffers from many to one in QGIS, using QGIS Python API? I made a search in QGIS API Documentation and GIS SE. I'm not looking for a ...
Kadir Şahbaz's user avatar
0 votes
1 answer
46 views

Adapting variable difference buffer script from QGIS 2 to QGIS 3

I have a script below which creates variable buffers based on a field "ALT" and the coordinates of many points "X" and "Y"), and dissolves the results. It was written in ...
Ross Bardwell's user avatar
4 votes
2 answers
432 views

Buffer algorithm doesn't work in a new script from template

I use QGIS 3.10.14 and I begin with PyQGIS. When I tried to make a simple script which use the native buffer algorithm, the output layer came out exactly like the input layer, with the same polygons ...
FloSnow's user avatar
  • 53
0 votes
0 answers
114 views

MultiRing buffer plugin to Python script in QGIS

Is there a way to get the MultiRing buffer plugin into a Python script? I want to use it in the QGIS Modeler, but I cannot use plugins in there, or to get multiple buffers with varied (not equal) ...
den98's user avatar
  • 1
3 votes
1 answer
85 views

Buffer output is different for same attribute value in different layers (QGIS 3)

I have two line layers with almost the same attribute table. And I want to create a buffer with "variable distance buffer" from the line's attribute "raiometade" and "raio_metade". Layer 1 is ...
Kajo's user avatar
  • 691
4 votes
1 answer
228 views

Export looped layers at once using PyQGIS?

I am trying to use one-side buffer on road centerline (layer name: small_road) by 1~40m. I've succeeded in creating one buffer (2m) file at a time using 'SEGMENTS':2,'JOIN_STYLE':0,'MITER_LIMIT':2,'...
jinha kim's user avatar
  • 329
2 votes
1 answer
66 views

Creating plugin in QGIS

I have a problem with my first QGIS 3 plugin. I want to calculate lenght each segment in my polyline and next creating buffer equal 1/2 length of line. The first 13 lines code have to do calculating ...
Robert's user avatar
  • 55
0 votes
1 answer
227 views

Continuous buffer from individual polygons in QGIS

I have a stream segment for which I am trying to find a buffer around with criteria as 5m of elevation. So for each straight line within a stream segment, I have found buffer (polygon) for it. Now I ...
Swapnil 's user avatar
1 vote
0 answers
110 views

Create buffer based on the size of a line's length (QGIS) [closed]

I need to create a buffer around a point, witch has to be 1.3x bigger than the length of a given line. I want to automate this process with graphical modeler or pyqgis. So the program should ...
Kajo's user avatar
  • 691

15 30 50 per page