jdugge / bufferbypercentage Goto Github PK
View Code? Open in Web Editor NEWPlugin for QGIS for buffering polygon layers so the resulting features' area is a specified percentage of the original
License: GNU General Public License v2.0
Plugin for QGIS for buffering polygon layers so the resulting features' area is a specified percentage of the original
License: GNU General Public License v2.0
It will be easier to find
Tried using this on a layer with epsg:27700 (UK National Grid), got back a new layer in the legend, nothing on the map though. Go to properties, set the CRS to epsg:27700 and there it is.
The result layer should (probably) use the same CRS as the input layer.
The notification does not close itself after the default time
Hi,
I am fairly new to QGIS, and I was unable to determine if this issue has already been dealt with. The plugin does not appear to be working with QGIS 2.16. I can see no one has been active on here for some time, so I will post further details if someone replies.
Regards
Now the default is 1. Please change it to 5, the default for main buffer command
There should be unit tests to make sure the plugin continues working correctly after backend changes.
Python:2.7.6 (default, Mar 22 2014, 23:03:41) [GCC 4.8.2]
QGIS:2.6.1-Brighton Brighton, exported
Cannot install the plugin... 0.2.3 (in /home/ubuntu/.qgis2/python/plugins/BufferByPercentage)
i do not removed it as qgis suggest due install issue and trying to inspect the issue... i get:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 208, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/ubuntu/.qgis2/python/plugins/BufferByPercentage/__init__.py", line 52, in classFactory
from bufferbypercentage import BufferByPercentagePlugin
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/ubuntu/.qgis2/python/plugins/BufferByPercentage/bufferbypercentage.py", line 38, in
from processing.core.parameters import ParameterVector
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named parameters
In a second try i removed the plugin dir
rm -fr /home/ubuntu/.qgis2/python/plugins/BufferByPercentage
But i get still same issue installing...
Thank you
The plugin is broken on current master (upcoming 2.6, due in 10 days):
No module named parameters.ParameterVector
Please fix it before release.
Thanks.
Keep getting the following error when I try to buffer my polygons by 35% and save to new shape file. My polygons are only 0.2 meters wide, wonder if that is the issue?
Error message:
Traceback (most recent call last):
File "C:/Users/Bob/.qgis2/python/plugins\BufferByPercentage\bufferbypercentage.py", line 181, in run
self.target_factor, self.segments)
File "C:/Users/Bob/.qgis2/python/plugins\BufferByPercentage\bufferbypercentage.py", line 55, in find_buffer_length
area_unscaled, target_factor)
File "C:/Users/Bob/.qgis2/python/plugins\BufferByPercentage\bufferbypercentage.py", line 80, in secant
dx = f * (x - oldx) / float(f - oldf)
ZeroDivisionError: float division by zero
Both when writing to memory layer and to a shapefile.
It does not happen on all PCs on a course here, but we had it both on Win and on Debian.
Perhaps trying to exceed the intent of the program with this observation. We have a groups of trees ( 1 or more trees) for which convex hulls are created. We create a buffer of 200 feet ( 60.96m) , but there is also a minimum area requirement of 10 acres ( 40468.6 sq m) per buffered area.
Used this equation to generate the percentage that a polygon must expand in order to meet the area requirement in the field calculator.
if(((40468.6 - $area) <0),100,((((40468.6-$area)/$area)*100)+100))
Bufferbypercentage works fine if the original buffer is from a single tree. However,when the convex hull of a group of multiple trees is less than 10 acres and needs to be buffered out to 10 acres the seems to get stuck and gives ever increasing estimates on the completion time
While there are methods of incrementally buffering out until the threshold area is reached see ( https://github.com/vpdawson/Habitat-Manager ( working with the author ,had pointed him to your project)) I was wondering if this was a bug, or just beyond the intent of the program?
The plugin would be very good as an additional command for the Processing toolbox.
Currently, the buffered features don't inherit the attributes and values of the original features. This should change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.