[Qgis-user] Geometry buffer tool

Tony Shepherd (FarmMaps NZ) tony at farmmaps.nz
Wed May 29 19:45:18 PDT 2019


Hi All

 

Does anybody have issues with the Geometry Buffer Tool failing if used more
than once in a QGis session?

 

What I am doing is that I have a polygon representing an area to be planted
in trees.  I have a stream running through the area and cant plant within
10m of the stream, so I am digitising the stream, creating a 10m buffer and
using that to cut an area out of my existing planting polygon.  The first
time it works a treat and then if I reuse the tool it fails.  Only way
around is to restart QGIS and then it works fine the first time, but fails
if used again.

 

QGIS 3.6.3

 

Using as follows:

.         create a few lines.  

.         Use the buffer tool to create a region based on parameters and as
a result, it creates a temporary layer called "Buffered".  

.         Use that buffer to erase some area from an existing polygon. 

.         Close the layer "Buffered" as I no longer need it.

.         Digitise some other lines and repeat the process.

.         Now I get an error, so if I completely close QGIS, restart QGIS it
works, but only once. If I go to try the same process a second time it
fails, but again restart fixes it.

 

The error is as follows:

 

Traceback (most recent call last):
  File
"C:\Users\Tony\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\Di
gitizingTools\tools\dtcutter.py", line 43, in process
    dlg = DtChooseCutterLayer(self.iface, self.isPolygonLayer(passiveLayer),
self.lastChoice)
  File
"C:\Users\Tony\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\Di
gitizingTools\dtDialog.py", line 77, in __init__
    self.initialize()
  File
"C:\Users\Tony\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\Di
gitizingTools\dtDialog.py", line 87, in initialize
    if self.cutterLayer.id() == valueArray[0]:
RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted

 

Cheers

Tony

 

Tony Shepherd  |  GeoSpatial / Mapping Manager

Ph 027 435 6193  |  E tony at farmmaps.nz

FarmMaps NZ, 3 Kerwood Place, Gore 9740

 



 

 

 <http://tonyshepherd8.wixsite.com/home>
<https://www.wunderground.com/personal-weather-station/dashboard?ID=ISTLGORE
2> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190530/a5d222f0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 2467 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190530/a5d222f0/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 2510 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190530/a5d222f0/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3063 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190530/a5d222f0/attachment.jpg>


More information about the Qgis-user mailing list