Comments (6)
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)
- https://docs.qgis.org/latest/en/docs/user_manual/processing/scripts.html
- https://docs.qgis.org/latest/en/docs/pyqgis_developer_cookbook/processing.html
@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.
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.
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.
👍
from py-qgis-wps.
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.
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)
- https://docs.qgis.org/latest/en/docs/user_manual/processing/scripts.html
- https://docs.qgis.org/latest/en/docs/pyqgis_developer_cookbook/processing.html
@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)
- Provide python packages HOT 2
- Publish the documentation on docs.3liz.org HOT 2
- Erreur lors du chargement d'un fond de carte tuile XYZ personnalisé HOT 2
- Cannot set different port for docker instance HOT 2
- wps server hangs on Macos when Reloading Qgis providers HOT 17
- Acitvate WCS and WFS OGC protocols for the generated qgis projects HOT 2
- The alternate URL for a job (text/html) does not work (404 not found) HOT 5
- Wrong document format for Job Results endpoint HOT 1
- WKT_EXPR.match(wkt): cannot use a string pattern on a bytes-like object
- config.sample.ini is not up to date HOT 1
- VERSION file is missing HOT 3
- Need example for how to pass client-side data to an algorithm HOT 2
- processing.runAndLoadResults does not load results HOT 7
- With "native" provider, a Python error occured : pyqgiswps.exceptions.ProcessException: Failed to initialize Qgis processes HOT 10
- Update docker image OS HOT 5
- Question: expiration time HOT 2
- new release
- Guidance about use of MAP=postgres connection string
- use of default value in a request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-qgis-wps.