Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread Mike Flannigan
Thank you.  I did get an Action to operate today.  My action also uses a Google Maps link. I can click on "Identify Features", which opens a "Identify Results" panel.  Then I can click on a feature in that layer, open Actions in the "Identify Results" panel, and click on the action, which runs

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread L.W.
Implementation: Starting position: Two attribute tables with geodata and attributes, linked with each other in the layer properties dialog. When you click on an object in the map, the corresponding line to the second object should be drawn. If you click again, nothing more may be drawn. If

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread Jorge Gustavo Rocha
Hi Mike, Just create an action with something like this to see it in action: https://www.google.pt/maps/@[% @click_x %],[% @click_y %] This will open google maps at the place you clicked. If you want to get something from the action called, you have to capture its output (and return the right

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread Bernd Vogelgesang
other ideas after my third coffee: Maybe you could try with a virtual layer. I'm successfully working with them to show me the status of to be controlled items with a geometry-less maintenance-table. But I'm pretty confident that the same logic would work with two geometry layers If there was

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread L.W.
and there are some disadvantages ... first you have to set the layer active to which the symbol belongs. there is no "is_" derivat for "get object info" (i-icon with mouse-pointer), so nothing happened if the feautre attribute-dialog is shown, the feature is (different) highlighted but not the

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread L.W.
I tried a little bit with "actions" but - I think you're right - there is no onHover. anyway, I found a much more comfortable solution for the moment. I add the simple term "OR is_selected()" in the if clause for my symbol to show the changed color (in my case I draw a line between two points)

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread Richard Duivenvoorde
On 11/22/20 8:40 PM, Jésahel Benoist wrote: > The actions are a standard way of acting on graphical objects, so for me it > would be the first thing to try. Did you ? > > Le dim. 22 nov. 2020 à 20:01, Bernd Vogelgesang > a écrit : > > if you would be so

Re: [Qgis-user] Toggle Attribute

2020-11-22 Thread L.W.
I did not knew before ... I tried a bit and I can not found someting for e.g. onHover (on map over feature) to possible change a attributes value or set some temporarly variable to set a style. Am 22.11.2020 um 20:40 schrieb Jésahel Benoist: The actions are a standard way of acting on

Re: [Qgis-user] Toggle Attribute

2020-11-22 Thread Bernd Vogelgesang
if you would be so kind to explain the "just" part of your proposal? On 22.11.20 15:56, Jésahel Benoist wrote: Can't you just use layer's actions? djes Le dim. 22 nov. 2020 à 08:43, Bernd Vogelgesang a écrit : I had a similiar use case, see here: https://gis.stackexchange.com/q/322544/8202

Re: [Qgis-user] Toggle Attribute

2020-11-22 Thread Jésahel Benoist
Can't you just use layer's actions? djes Le dim. 22 nov. 2020 à 08:43, Bernd Vogelgesang a écrit : > I had a similiar use case, see here: > https://gis.stackexchange.com/q/322544/8202 > > Unfortunately, I just noticed the answer on my post then right now, so I > did not dig any deeper. > >

Re: [Qgis-user] Toggle Attribute

2020-11-21 Thread Bernd Vogelgesang
I had a similiar use case, see here: https://gis.stackexchange.com/q/322544/8202 Unfortunately, I just noticed the answer on my post then right now, so I did not dig any deeper. Basic thing is, that you can establish a "connection" between two layers by an "aggregate" function. But how to use

Re: [Qgis-user] Toggle Attribute

2020-11-21 Thread Thayer Young
qgis-user@lists.osgeo.org Subject: [Qgis-user] Toggle Attribute Message-ID: Content-Type: text/plain; charset=utf-8; format=flowed Hi, is there a way to have a feature on map and when I press/click/hover on it that some event is raised? Primary I want to toggle an attribute field true/false. I tha

[Qgis-user] Toggle Attribute

2020-11-21 Thread L.W.
Hi, is there a way to have a feature on map and when I press/click/hover on it that some event is raised? Primary I want to toggle an attribute field true/false. I than will e.g. display a special symbol(layer) to an other feature. Example: Feature A has a foreign key to Feaure B, when B is