lizmap-web-client icon indicating copy to clipboard operation
lizmap-web-client copied to clipboard

[Feature] QGIS layer action support - partial ?

Open TotalNoobOnGIS opened this issue 7 years ago • 5 comments

Would it be possible to run QGIS layer actions from lizmap ?

Then the actions like python commands and SQL query related processing would be enabled from the web (and executed on the QGIS server side)

Scenario in QGIS:

  • by using identify tool user selects a layer object
  • attribute table appears, with pull down menu containing a user defined layer actions
  • user can run defined layer actions (like SQL queries etc.)

My (limited) use case

  • User selects an object from lizmap canvas
  • pop-up is displayed with list of layer actions (buttons)
  • user can run the action in the context of select layer object

By having this functionality one could e.g. add features and then run layer action which could modify postgres layers, do calculations on server etc.

TotalNoobOnGIS avatar May 13 '18 06:05 TotalNoobOnGIS

Right now as a workaround I am using an action managed by qgis, I used a personal pop-up with some variables in lizmap. My problem was to recall a link to a page using a unique code that could be found inside the geographic data table present in the psql database. I hope however to see the qgis action integration in the next release of lizmap.

Example lizmap custom pop-up with variables:

<Html>
<Body>
<P> Button </ p>
<button onclick = "window.location.href = 'https: //xxxxxx/?parameter={$variable}'" target = "_blank"> Click Me </button>
</ Body>
</ Html>

TecnostudiAmbiente avatar Oct 16 '19 09:10 TecnostudiAmbiente

To support Actions in Lizmap, we need that qgis server supports actions or a way to execute actions in qgis server.

rldhont avatar Oct 16 '19 23:10 rldhont

We have our own action, defined using SQL. We have different scope : layer, feature etc https://docs.lizmap.com/current/fr/publish/configuration/action_popup.html and more in LWC 3.7 if I'm correct.

Gustry avatar Jul 18 '23 17:07 Gustry

Related PR https://github.com/3liz/lizmap-web-client/pull/3343

mdouchin avatar Jul 24 '23 07:07 mdouchin

Can you try version 3.7 ? It has actions at the layer level now.

Gustry avatar Feb 20 '24 13:02 Gustry

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

github-actions[bot] avatar Apr 12 '24 04:04 github-actions[bot]