Questions tagged [actions]

An action is something that happens when you click on a feature (in QGIS). It can add functionality to a map, such as retrieving additional information about an object.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 views

Run feature action from canvas for overlapping polygons

I have a polygons layer for which I created an action, using a python script, that allows me to open a file related to the feature that I click on the canvas. However some of the polygons features ...
0 votes
0 answers
40 views

Change path for QgsAction icon in PyQGIS

I added a QgsAction in my layer style, but when I share this style to other users, the path to the icon is written in absolute. I watched QgsAction doc (here) and it doesn't seem to be a setIconPath(),...
  • 1,023
0 votes
1 answer
47 views

In ArcGIS Online, how to configure layer actions to use a map to filter a table for a chart?

In ArcGIS Online, I've created a dashboard. In the Dashboard, there is a webmap. I also have a chart. It IS possible to use the map to filter the chart, using Layer Actions (configure gear, layer ...
  • 1,000
3 votes
1 answer
70 views

QGIS actions with remote data

I try to share several images through an action from QGIS. The images are in my PC and I need that other users can see them in their machines (we are in a local network). The images are geotagged in ...
3 votes
1 answer
193 views

Implementing PyQGIS code to action when pressing button in QGIS

I am interested in the creation of actions in QGIS 3.22. I have a Python script that multiplies the numbers from the fields "wert1" and "wert2" and writes them to the field "...
3 votes
1 answer
90 views

Programmatically add QgsAction to Attributes form using PyQGIS

Context I am developing a QGIS plugin using QGIS 3.22.11-Białowieża. One of the functions is to add a layer to the map and format the fields in the attributes form. I want to avoid developing a custom ...
1 vote
1 answer
64 views

Setting QAction with no associated buttons in PyQGIS

I have a function that sets up some QActions and sets some keyboard shortcuts: def set_num_edit_shortcuts(self): self.right_next_action = QAction(parent=iface.mainWindow()) self....
  • 526
1 vote
1 answer
76 views

Placing plugin or action in submenu using PyQGIS or PyQT

I am trying to place a plugin into a submenu of "Vector". In this case "Geoprocessing Tools". When I use: iface.addPluginToVectorMenu('Geoprocessing Tools',action) or: iface....
  • 445
1 vote
0 answers
79 views

Action pop-up for Photo in QGIS 3.22.5 not working with Windows 11?

I am attempting to use the action feature for photos described in Using QGIS and QField for Field Data Collection - https://www.line-45.com/post/using-qgis-and-qfield-field-data-collection. This ...
2 votes
1 answer
191 views

Relative Path when linking a pdf to a feature

I'm trying to link PDF to features in QGIS. I do that by putting the path in a column named "PDF" and execute the default open action or a generic action command. So basically I don't have ...
  • 23
1 vote
0 answers
59 views

How to open a .pdf file with a partially matching name in the QGIS open file action

I have an attribute table where a field called "IDENT" contains a unique string for each measurement site. Using the QGIS action open - open file I managed to open a PDF in a subfolder if ...
  • 75
1 vote
1 answer
191 views

PyQGIS automatically change raster palette using Action

I have created an Action that downloads a map sheet. It appears as a 'Multiband Colour' but I need it to appear using 'Paletted/Unique values'. I assume I need to add QgsPalettedRasterRenderer within ...
2 votes
1 answer
90 views

Determining source of QGIS Action [closed]

I'm new to QGIS, using v 3.18. I would like to write an action that is triggered when a user inserts a point on a layer. For example. I have a point layer named testLayer. In the properties dialog,...
  • 394
4 votes
1 answer
349 views

QGIS - Python Action Error

I am using QGIS 3.18.1-Zürich and I am trying to create a Python action. Although I have installed the required packages, I get an error as shown below. Traceback (most recent call last):   File "...
  • 105
0 votes
1 answer
128 views

QGIS action loading layer in GPKG

I have a kind of "vector catalog" in a GPKG. It's different rectangles with an attribute called "name of the layer". In the same GPKG, I have all the different layers. I'm trying ...
  • 1,384
3 votes
1 answer
287 views

QGIS action on layer scope - reference to layer

In QGIS I would like to create an action of type "python" on layer scope, aim of this simple action is to print out the selected feature of the layer the action is defined on: My simple ...
1 vote
1 answer
119 views

Opening PDF w/ action based on variable crashes QGIS

I found this script which I modified a bit to open a pdf based on a page number given in the attribute list. Upon trying to execute the action it works just find but QGIS (3.4.15) is crashing! Any ...
  • 21
3 votes
0 answers
152 views

QGIS / QField: nested relational value form QGIS save refused QField

The Field Survey project should have been operational for two days already, but I have a major problem. After having succeeded in nested two fields in the form (relational value), we realize that the ...
  • 31
1 vote
0 answers
102 views

Loop does not run in QGIS action

I tried to create a QGIS action in order to refresh several materialized views at once. for that I wanted to execute a simple loop in my action in order to recover the database where the view will be ...
2 votes
1 answer
421 views

QGIS Action to update several fields

I would like to update one ore more fields of my attribute table on demand (f.e. using a QGIS Action) with one simple click. For now I have to open attribute table or the layer properties, start field ...
  • 8,065
0 votes
1 answer
313 views

Opening folder using QGIS action with Total Commander

Is it possible to open a folder, with QGIS' "run feature action", using Total Commander instead of explorer? Something like: explorer [%'C:\myfolder'%] needs to be C:\totalcmd\TOTALCMD.EXE [%...
  • 69
2 votes
1 answer
641 views

Open specific page of a PDF using QGIS actions

Can anyone help me with the syntax to open a .pdf-file at a specific page using a QGIS action? For example, a 50 page pdf has the information of use at page 8, so invoking the action in the QGIS Map ...
1 vote
0 answers
41 views

Action on filtered objects QGIS

I have got a point layer with about 1000 points. These point has a rule based symbology. So far so common. In this layer I have also some actions implemented. If I unselect some rules, that only the ...
  • 59
2 votes
1 answer
131 views

Can I make an Action on QGIS to open a file(.tiff) on an attribute table directly to Photoshop

Here is the sample file image to be opened. Is there's a way to open an image file (.tiff) on the attribute table using an image viewer like Photoshop. Can I create an Action on QGIS so that it ...
  • 21
1 vote
0 answers
151 views

Is there a way to maintain map tips and/or actions in an exported PDF using QGIS?

I am working on a project that displays the locations of a group's projects in a city. I have it set up now so that map tips shows the name of the project and location when you hover over the point. I ...
0 votes
0 answers
319 views

QGIS Action Open Image

Can someone advise me where i might be going wrong when trying to open an Image in a Network folder using the Action function in QGIS I have a point dataset with a column that has the image location ...
1 vote
1 answer
100 views

QGIS Action on layer postselect object

I'm using QGIS 3.10 LTR. In my project I have a point layer (location of pictures) with 3 different actions (open file, open folder, open html). This works fine for me. To this layer I add time by ...
  • 59
2 votes
1 answer
431 views

Action to directly export selected features as GPX

I would like to directly export selected tracks of a line layer as gpx. The common way is: Select the line-layer select the tracks for export right-click on the layer -> save selected features as.....
  • 8,065
0 votes
1 answer
77 views

Automatically update field when value in related table is changed

i have set up a 1:n relation in QGIS. The parent layer contains trees (point geometry) and some basic informations about. The related table contains measurements which should be carried out to keep ...
  • 2,508
1 vote
1 answer
1k views

Creating an QGIS Action to change a field value from yes to no

So I'm working on a project where I have to check the classification of a bunch of points in a QGIS project. I have created a styling which means I can perform this task with visual inspection. I have ...
1 vote
0 answers
330 views

OpenLayers how to show long lat after click to map and make visible until next click to map?

I found this code for make visible long lat coordinate after moving the mouse over the map. And I rewrite to HTML page with newest OpenLayers version. I would like to show this long lat coordinates ...
  • 113
1 vote
0 answers
24 views

Making Open Action only enabled on visible polygons

I have a shape with polygons with Date field (YYYY-MM-DD). The shape is displayed as Categorised according to year (substr("Date",1,4) and I can switch polygons on an of according to year. I have an ...
  • 11
1 vote
1 answer
51 views

Apply transparency to a raster layer by using actions [closed]

i have a specific action to load an raster layer by clicking on it, however i need to know if is possible to open that specific file and automatically apply a style. My idea is when someone click and ...
3 votes
1 answer
366 views

QGIS Actions in QField

I am creating an action in QGIS, which opens a link from an attribute. Is it possible to open such a link in QField (Android App)? Or is there any other way to open links from the attribute table in ...
2 votes
0 answers
239 views

Add Action (-Button) to Attributes Form (QGIS)

Is it possible, to simply add a Action to a Attribute Form (Drag'n Drop Designer)? I know, I could use the QT-Designer and Python, but I'm looking for a fast and simple way without python knowledge. ...
  • 8,065
5 votes
1 answer
1k views

Editing feature geometry in action using PyQGIS

I have fieldwork photos stored in a vector layer, geotagged from EXIF GPS data. Sometimes the GPS is off, or even missing, and I need to move their position manually. Unfortunately, the Advanced ...
  • 7,083
3 votes
1 answer
543 views

Using Layer Actions on overlapping polygons with PyQGIS

I have a file with many overlapping polygons that outlines different datasets. In the attribute table I have an absolute Windows path to mapinfo tab files. I would like to define an action on the ...
1 vote
0 answers
112 views

Open a URL in QGIS from form (or using actions) in Linux

Does anyone know the correct instructions to open a URL as an action (or from a form) using Arch Linux? In Windows it's as simple as using 'Open' in the action type, and then [%'field containing URL'%...
user avatar
3 votes
1 answer
202 views

QGIS Action commands in 3.8

In earlier versions i was able to open pdf files by using an action command like this one: cmd /c [%path%] this function no longer works on version 3.8. Any ideas why and what an alternative could ...
  • 141
5 votes
1 answer
437 views

Error from open image action in QGIS

I am using QGIS 3.6. By clicking on a polygon I want that an image associated to this polygon appears (as a pop-up window e.g.). The path for the pics are stored in the attribute table (string field)....
  • 519
2 votes
0 answers
94 views

Adding action to map in QGIS when link to actions menu item is missing?

I am running qgis 3.8.0 zanzibar on ubuntu 18.04. I am trying to set a hyper link on a point on the sample map (Alaska). A casual perusal tells me that I should set up an action. https://www....
1 vote
2 answers
1k views

Filling fields instantly and automatically when creating new entity in QGIS

I have a polygon layer, I want to fill the fields automatically each creation of a polygon. Knowing that there is a spatial relationship (intersection, contain ...) between my polygons and other ...
  • 55
3 votes
2 answers
2k views

Making button clickable to perform function in Leaflet?

I am trying to create buttons that will initiate a flyTo. I can click the buttons on the page but they do nothing action functions: <script> function Action(){ map.flyto([43.372000,...
  • 71
6 votes
2 answers
7k views

Creating multiple select dropdown list in QGIS

Is it possible to create a multiple select dropdown list/select widget in QGIS which links to a separate txt file? I want to collect species lists for different locations in QField but do not want to ...
3 votes
1 answer
610 views

Removing "duplicate feature" button from QGIS attribute table

when I enable action buttons on particular layer I always get two additional buttons in edit mode: duplicate feature and duplicate feature and digitize. Is there any way to remove them, because they ...
  • 107
3 votes
1 answer
748 views

Open multiple files at once by QGIS actions buttons

I'm planning to put into my table a column with folder path, so it will be easy to open a folder with needed files in attributes table. Now I'm wondering if I could open not the folder, but all files ...
  • 107
5 votes
1 answer
844 views

QGIS actions: copy to clipboard some attributes

When I click on "execute action entity" =>Copy to clipboard a preconfigured set of attributes of my layer. Here's what I've done so far: Open the Layer Properties dialog and head over to the Actions ...
  • 448
0 votes
1 answer
217 views

QGIS hyperlink to server location- working in 3.0 but not 2.18.20?

This is not necessarily a pressing issue, as there is a workaround, but it has piqued my curiosity about how QGIS manages hyperlinks through its 'Action' functionality. Please feel free to correct my ...
1 vote
1 answer
182 views

QGis 2.18 Actions window does not display 'Actions Properties'

I have installed QGis 2.18.19 64bits in Windows 7. My problem is when I open the layer properties actions window, I do not see the menu Action Properties. Apparently it should be there according to ...
  • 513
1 vote
1 answer
69 views

Action ran severall times when clicking on overlapping features

I have a layer of points and I associated a Python action to that layer which basically opens a url in the embedded QWebView. This works well. The issue I am facing is that if I zoom out and click ...
  • 71