Giter Club home page Giter Club logo

geo1005's People

Contributors

jorgegil avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

geo1005's Issues

Adding a progress bar to the tool

Adding progress bars is not trivial in QGIS, because Python by default blocks signals and the entire interface when busy with the main process, and only updates when finished. Therefore, only then it gives a full progress bar... pretty useless.

One way to get it to work is by running the analysis in a separate thread and getting signals from it about progress of the function to update the progress bar. I'll see if I find time to prepare a simple general example.
But maybe these threads help:
https://gis.stackexchange.com/questions/45514/how-do-i-maintain-a-resposive-gui-using-qthread-with-pyqgis
https://gis.stackexchange.com/questions/94477/how-to-use-threads-in-pyqgis-mainly-to-keep-ui-active
At the end of this one they suggest a different approach in case you don't need a responsive GUI (i.e. the user can't interact) but I'm not sure it works.

An additional step is to see if the code can be faster. The intersects test is looping through all buildings and buffers making it a huge loop.

Can we make a smaller loop?
Can we add a spatial index to the buffer or points layer and search the index first to loop less elements?
Can we use processing tools that are optimised and faster?

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.