Giter Club home page Giter Club logo

bufferbypercentage's People

Contributors

jdugge avatar nyalldawson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bufferbypercentage's Issues

The plugin causes a segfault

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.

Plugin broken

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

Result Layer has wrong CRS

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.

Cannot install plugin...

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

Include unit tests

There should be unit tests to make sure the plugin continues working correctly after backend changes.

ZeroDivisionError: float division by zero

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

Long time for buffering percentages over 100 on irregular polygons

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?

Broken with QGIS 2.6

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.