GithubHelp home page GithubHelp logo

Comments (3)

jblindsay avatar jblindsay commented on May 16, 2024

@bkielstr Thank you for making this feature request. I would very much like to add this feature. The one issue that I know I will run into is that the QGIS front-end cannot handle tool input parameters that can take either a raster or vector. I've run into this issue before. However, I'll see what can be done.

from whitebox-tools.

alexbruy avatar alexbruy commented on May 16, 2024

@jblindsay as developer of the QGIS plugin I really appreciate that you are trying to keep WBT compatible with other programs, but if this prevents you from implementing some useful tools or making existing tools more versatile, maybe better to drop this compatibility?

Accoridng this specific question. Actually Processing allows to declare inputs as generic "layer" paramer which can be either raster, vector or even plain table. The only drawback I can think of is that with such parameter it is not possible to limit allowed geometry type (e.g. points, lines or polygons).

On other hand it is not possible to declare outputs which can be either raster or vector, however there are some workarounds. All of them require some manual work and prior knowledge of which tools are producing such outputs.

Let me know if you need more information and I will try to explain in detail.

from whitebox-tools.

jblindsay avatar jblindsay commented on May 16, 2024

I have just committed code that adds the ability to specify either vector points or a raster for pour points. This should resolve this issue.

from whitebox-tools.

Related Issues (20)

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.