Monday, 17 December 2018

actions - 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 right away without any clicking needed


I believe the term is file streaming?



Answer



Can be done on identification.


You first need an attribute with the photo paths. Must be full path:


enter image description here


Then you set the widget of the attribute to Photo, through the image properties:



enter image description here


When you identify a feature, it will pop up an image:


enter image description here


Although you need to have "Auto open form" ticked on in the identify results, also it must only be identifying the layer with images, so the mode should be "Current Selection" so it will identify the layer selected in the layers panel:


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...