3

How do I display images at specific points, through the raster image marker symbology, from a standalone BLOB attribute table (SQLite) loaded into QGIS?

To briefly summarise: I have loaded a SQLite database and a geopackage database into QGIS. This geopackage database contains points spread over all of Denmark, containing information like GNSS station names, gps nr, coordinates, height measurements etc.

Then, as a supplement to these points, I have this SQLite database that contains images tied to each point. The SQLite database loads in fine, and can join layers with the geopackage database. But I can't seem to figure out how to display the images tied to each point.

So far, I've managed to display a custom image that I loaded down from Google at each point, through the raster image marker, roughly following this guide: Guide to adding pictures through raster image marker

But I want to load the images from the database (geo_ref skitse) that has unique images tied to each point instead, which is a bit more tricky.

I have made 2 screendumps of how my situation looks as of now, if that is of any help.

enter image description here

enter image description here

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Jul 9, 2020 at 13:33

2 Answers 2

4

It's very easy with the help of the Expression String builder. See my example, where I use the following expression to display the PNG images from my Geopackage table "images":

'base64:'||to_base64( attribute(get_feature( 'images','name',concat( 'Wappen_',"bl")),'image'))

enter image description here

enter image description here

enter image description here

answered Dec 9, 2020 at 7:45
-1

To use Raster image markers:

Choose Single Symbol Change Symbol label type from Simple marker to Raster image marker Use a Data-defined override for the file location Field type: string → photo (string) enter image description here

I snagged this from here: https://bnhr.xyz/2019/09/22/geotagged-photos-in-qgis.html

answered Jul 9, 2020 at 21:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.