GithubHelp home page GithubHelp logo

Comments (6)

Gustry avatar Gustry commented on August 19, 2024 1

If I were you, I would go for a processing model, easier as it seems you are not familiar with PyQGIS (which is what the wrapper is about)

@cBevilaqua In your processing toolbox, you have a Python button at the top, "Create script from template" which is doing the wrapper more or less with the example provided.

from py-qgis-wps.

dmarteau avatar dmarteau commented on August 19, 2024

The answer is simple: you cannot expose the native provider .

Neither you should expose the qgis provider: theses algorithms have never been designed to work with WPS marshalling (remember that the input/output parameter's set in Qgis processing is much larger that what's possible to expose in WPS).

But you may wrap call to native/qgis algorithm into your own algorithm to fit specialized needs, which is more suited to be used as WPS service.

from py-qgis-wps.

maborroto avatar maborroto commented on August 19, 2024

I got it, thank you a lot. I have written a custom algorithm wrapping the native:buffer, and it works perfectly.

from py-qgis-wps.

dmarteau avatar dmarteau commented on August 19, 2024

👍

from py-qgis-wps.

cBevilaqua avatar cBevilaqua commented on August 19, 2024

I got it, thank you a lot. I have written a custom algorithm wrapping the native:buffer, and it works perfectly.

@maborroto , can you please send me the wrapper you made with the buffer algorithm? I need to do the same but have no idea how to do it. Thanks.

from py-qgis-wps.

cBevilaqua avatar cBevilaqua commented on August 19, 2024

If I were you, I would go for a processing model, easier as it seems you are not familiar with PyQGIS (which is what the wrapper is about)

@cBevilaqua In your processing toolbox, you have a Python button at the top, "Create script from template" which is doing the wrapper more or less with the example provided.

Thanks!

I made a small example here: https://github.com/cBevilaqua/qgis-sample-processing, following the example here (https://docs.qgis.org/3.28/en/docs/user_manual/processing/scripts.html) and got it working.
Thanks!

from py-qgis-wps.

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.