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
0
votes
0answers
32 views

Show selected fields in popup window in QGIS cloud map

I am very new to QGIS and am using it to build an interactive map for an art project. I already published a map. Here is the link. https://qgiscloud.com/stillmountain/Loved-Ones-Map-2020/ What I ...
1
vote
1answer
51 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
0answers
35 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 ...
1
vote
0answers
20 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 ...
1
vote
1answer
29 views

Apply transparency to a raster layer by using actions

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
1answer
105 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
0answers
69 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. ...
3
votes
1answer
163 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 ...
3
votes
1answer
173 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
0answers
37 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'%...
2
votes
1answer
90 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 ...
4
votes
1answer
145 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)....
2
votes
0answers
41 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....
0
votes
2answers
244 views

QGIS how to fill the fields instantly and automatically when creating an entity

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 ...
2
votes
2answers
484 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,...
1
vote
2answers
2k views

Creating a 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 ...
1
vote
1answer
345 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 ...
3
votes
1answer
334 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 ...
4
votes
1answer
327 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 ...
0
votes
1answer
127 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
1answer
153 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 ...
1
vote
1answer
63 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 ...
3
votes
1answer
148 views

Creating link between geopackage and pdf

I'm trying to create a link between geopackage and a folder that contains pdf files. There are points with the same name and they should open the same pdf. I want name 100 to open 100.pdf. Name 101 ...
1
vote
1answer
154 views

How to make a clickable label in qgis from an excel sheet?

I have location data in excel sheet where each label has corresponding data file for each financial year. I want it that when i click on a label, years pop up, and when i click on that year, its ...
2
votes
0answers
78 views

Action opening DWG file in Intellicad using file name in a attribute table

I have tried numerous variations in creating an action to open a DWG file in Intellicad after selecting a specific row in a table in QGIS. I am quite frankly stumped at this point. I have the DWG ...
2
votes
2answers
1k views

How to add a new feature to a layer

I have a table with three attributes [field1, field2, field3]. I'm trying to insert a new feature to this table by defining field2 and field3 only. lyr = QgsMapLayerRegistry.instance().mapLayer('...
1
vote
0answers
284 views

Get id of last added feature in qgis python action [duplicate]

I created a python qgis action that open the dialog form so the user can add a new feature. maintenance_lyr = QgsMapLayerRegistry.instance().mapLayer('od_maintenance_event20180212171049766') ...
2
votes
1answer
2k views

Creating QGIS copy-paste features between two layers using PyQGIS?

i want to create a QGIS action which copies features between two points layers using pyqgis . i have read How to create a QGIS action which copies features between layers? and i try to use this code: ...
2
votes
1answer
247 views

QGIS Action which load .asc

I have a grid layer (lidar_cortina) with "NAME" and "percorso"(path) coloumns: I'm trying to write an QGIS action that loads file .asc from a grid layer. qgis.utils.iface.addRasterLayer("[%percorso%]...
1
vote
0answers
63 views

Initiate field value before adding new feature

I have two layers: Chambre(obj_id) Ouvrage(obj_id, fk_chambre) The attribute Ouvrage.fk_chambre is referencing the attribute Chambre.obj_id. I'm trying to create an action on the Chambre layer that ...
2
votes
0answers
432 views

Open file from QGIS and search for text within it

I have a lot of data associated with a layer in QGIS. Each individual feature has its own information associated with it - but this information is within a number of different PDF files. I have ...
2
votes
0answers
373 views

Creating Action in Qgis

I'm trying to create an action in QGIS that open this link htt p://www.gulliver.it/itinerario-foto/14451/#!/uploaded/2014/large/20140929123749.jpg||grid2 but the character | is converted into %7C ...
1
vote
1answer
705 views

QGIS (python) action to open folder and search for string [closed]

I am using QGIS layer property actions. Is it possible for python to open windows explorer at a directory and then search for a custom string? Currently I can open windows explorer at the directory I ...
5
votes
1answer
291 views

QGIS Layer Action Invoking an EXE

I am able to launch exe files from within QGIS actions without any problem, but when I try to launch one in particular (img2pdf.exe) I get an error. Syntax error: invalid syntax The command I am ...
3
votes
1answer
1k views

how do I view geotagged photos and audio points in qgis mac?

How can I view geotagged photos and play audio files in qgis? For photos, HTML map tooltips used to work in qgis, but don't as of 2.18.2. For audio, I don't know of a solution.
4
votes
1answer
440 views

What is this 'Run layer action' and how to use it?

Following on from this question: Run QGIS layer Action on all selected features, a possible solution was to create an action in Python which iterated through the layer's selected features. If you ...
3
votes
1answer
1k views

Run QGIS layer Action on all selected features

QGIS is such an amazing tool with lots of useful features, so that it's easy to overlook some of them. Just to be sure it's not already implemented in QGIS 2.18: Is there any Attribute Table option ...
3
votes
1answer
2k views

Create an action in QGIS 2.18 to show image? [duplicate]

(Windows 10.1 and QGIS 2.18) I am trying to create an action for a Shapefile layer that will display an image when any of its three polygons are clicked. I have added an "image" field to the layer's ...
12
votes
4answers
10k views

Show images related to features in QGIS?

Say for example, if there's a point data with old trees, then when you use the identify tool, you can see the photograph of the tree Or even one level further, the labels displaying these images ...
6
votes
1answer
286 views

QGIS action for inserting text in field by hotlink

I hope to make a simple action in QGIS, where the field in my layer column "Process" can change from "NULL" to "Finished". I use hotlink to click on the polygon in the layer, where I want the action ...
4
votes
2answers
2k views

Zoom Canvas to Selected Features with Python call from QGIS Layer Action

I have been trying to get one layer's clicked-on feature to have an effect on another layer's viewed features with some success, but I am unable to get the map canvas to be filled by the the selected ...
2
votes
1answer
338 views

QGIS action that sets transparency in RGB raster

In the question: "GIS Action that loads a raster, creates pyramids and sets color" I have resolve the question for raster in B/W but now I need it to load RGB raster with white background that I would ...
1
vote
1answer
153 views

GIS Action that loads a raster, creates pyramids and sets color

Using the code in "Developing QGIS Action which loads a raster". from PyQt4.QtCore import QFileInfo,QSettings from qgis.core import QgsRasterLayer, QgsCoordinateReferenceSystem s = QSettings() ...
1
vote
0answers
100 views

Create an action that loads the rasters that intersect a polygon feature

Using part of the code in "Developing QGIS Action which loads a raster" from PyQt4.QtCore import QFileInfo,QSettings from qgis.core import QgsRasterLayer, QgsCoordinateReferenceSystem s = QSettings()...
5
votes
2answers
481 views

Developing QGIS Action which loads a raster

I'm using the action code of this question: "How to create a QGIS Action which loads a raster?" qgis.utils.iface.addRasterLayer('E:\\Plot Sheet Devt\\1974-1984\\1250k\\[% Grid_Ref %].TIF', '[% ...
1
vote
1answer
632 views

Click on an object to open an image using a QGIS action [closed]

I'm working on this answer from @Nathan W to find how to deal with missing files, as they return a error message if QGIS doesn't find any. The initial workflow is to be able to click on an object (...
2
votes
0answers
97 views

QGIS open action slightly changes my url when it tries to open it

I have an issue with creating active hyperlinks in QGIS. My url (after I deleted the site name) originally looks like this: ?type=canvas_rendering#%7B%22frame%22:%7B%22id%22:481350%7D%7D When I ...
2
votes
1answer
230 views

Start multiple processes with one action

I am trying to start multiple processes with a single action in QGIS. With Windows commands it is not hard, see here: https://stackoverflow.com/questions/13719174/how-to-execute-multiple-commands-in-...
1
vote
1answer
214 views

Adding actions or any other options?

I am pretty new with all GIS things and I have to prepare homework in QGIS. I have a shapefile which contains many buildings with their own grades. I want to make an automatic tool, solution, etc. to ...
3
votes
1answer
415 views

How to use regular expressions within QGIS Actions

I have stored html links in a column of a postgis layer. There are a few entries which have multiple links stored in one cell (blank separated). I have to use the firefox.exe to open the links in ...