You can add one or more pictures to a feature. Below you find an example how to proceed.
Creating two tables¶
We will need two tables. One table where the features are stored and one with a list of pictures.
Apiary¶
id
(UUID)geometry
- ...
Apiary_pictures¶
id
apiary_id
(UUID)path
(TEXT)- ...
Relations¶
Create a relation with:
apiary
Referenced layerid
Referenced fieldapiary_picture
Referencing layerapiary_id
Referencing fieldstrength
Composition
::: {.container .clearer .text-center}
Widgets¶
apiary¶
Set the default value of the field id to uuid()
. No need to show it in
the form.
::: {.container .clearer .text-center}
Set the relation widget to Many to one relation
and add the relation
to the form
::: {.container .clearer .text-center}
picture¶
Set the widget type of the field path to attachment
and add it to the
form
::: {.container .clearer .text-center}
Geotagging¶
Some mobile devices will require Open Camera to be installed in order to enable geotagging.
To enable geotagging perform the following steps:
- In QField, go to the settings and make sure \"Use native Camera\" is activated
- Install the Open Camera app on your mobile device
- Within the Open Camera settings, make sure geotagging is enabled
- Within you mobile device settings, set the default camera app to Open Camera
- Completed! Open Camera will now be utilized while taking pictures with QField