Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread andrea antonello
Otherwise it is very well be possible to implement a "pipe" into QGIS / API >> for QGIS using various techniques (maybe even expose iface and some nasty >> "exec"ing :D ). E. g. check out >> https://github.com/gem/oq-irmt-qgis/tree/qgis3-socketserver which uses >> websockets. > > > A socket server

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread andrea antonello
Hi Hannes, > could you make the groovy part write a file or to a database that you have > your students load as layer in QGIS and which will refresh from its source > automatically on map canvas interaction? That might be a hacky but > sufficient solution if I understand your goal correctly. If yo

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread G. Allegri
> > Otherwise it is very well be possible to implement a "pipe" into QGIS / > API for QGIS using various techniques (maybe even expose iface and some > nasty "exec"ing :D ). E. g. check out > https://github.com/gem/oq-irmt-qgis/tree/qgis3-socketserver which uses > websockets. A socket server is e

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread WhereGroup
Hi Andrea, could you make the groovy part write a file or to a database that you have your students load as layer in QGIS and which will refresh from its source automatically on map canvas interaction? That might be a hacky but sufficient solution if I understand your goal correctly. If you w

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread andrea antonello
Hi Richard, > I guess you mean QGIS Desktop, right? AFAIK the only option is to use its > Python API, which requires all the PyQGIS < > https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/index.html> > and binary libs to be available inside the environment. > > Just curious: but would it

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread G. Allegri
Of course you can use PyQGIS to run standalone scripts, not only for plugins, and that's what I was assuming from Andrea's request. We have been using this approach in several contexts, even headless (server applications). Another option could be run a "micro server" inside a pyqgis plugin and ser

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread Richard Duivenvoorde
On 9/9/21 3:33 PM, G. Allegri wrote: > Hi Andrea, > > I guess you mean QGIS Desktop, right? AFAIK the only option is to use its > Python API, which requires all the PyQGIS > and > binary libs to be available inside the en

Re: [QGIS-Developer] Interaction API?

2021-09-10 Thread andrea antonello
Hi Gio, > I guess you mean QGIS Desktop, right? AFAIK the only option is to use its > Python API, which requires all the PyQGIS > > and binary libs to be available inside the environment. > I thought so. Thanks for confirm

Re: [QGIS-Developer] Interaction API?

2021-09-09 Thread G. Allegri
Hi Andrea, I guess you mean QGIS Desktop, right? AFAIK the only option is to use its Python API, which requires all the PyQGIS and binary libs to be available inside the environment. Giovanni Il giorno gio 9 set 2021 alle

[QGIS-Developer] Interaction API?

2021-09-09 Thread andrea antonello
Hi developers, I assume I know the answer already, but it won't hurt to ask. :-) Is there any kind of API to interact with QGIS from an external software? I teach geographic scripting with a generic non-GIS tool, and always wondered if there is for example a way to load a file into a QGIS project