Zum Inhalt

Nutze Bilddateien

In QFiled kann die Feldfunktion Anhang benutzt werden um: - Fotos zu zeigen und aufzunehmen - Links zu externen Dateien wie pdfs oder anderen Dokumenten zu zeigen

To configure the Widget, please refer to the Attributes Form Documentation

Eine Reihe von Bildern zu einem Objekt hinzufügen

Desktop Vorbereitung

You can add one or more pictures to a feature. Here is an example on how to proceed.

Tabellen

Du brauchst zwei Tabellen. Eine Tabelle, in der die Merkmale gespeichert sind und eine mit einer Liste von Bildern.

Bienenstock

Feld Typ
id Text (UUID)
geometry Geometrie
...

Bienenstock_Bilder

Feld Typ
id Text (UUID)
bienenstock_id Text (UUID)
pfad Text
...

Beziehungen

Erstelle eine Beziehung mit:

  • apiary Referenced layer
  • id Referenced field
  • apiary_picture Referencing layer
  • apiary_id Referencing field
  • strength Composition

Beziehungen
Beziehungen

Bedienelemente

Bienenstock

Set the default value of the field id to uuid() or use the UUID Generator widget. No need to show it in the form.

widgets
widgets

Set the relation widget to many to one relation and add the relation to the form

widgets
widgets

Bienenstock Bilder

Set the widget type of the field path to Attachment and add it to the form

widgets
widgets

Geotagging

Feldarbeit

Some mobile devices will require Open Camera to be installed in order to enable geotagging.

To enable geotagging perform the following steps:

  1. In QField, go to the settings and make sure Use native Camera is aktiviert
  2. Install the Open Camera app on your mobile device
  3. Within the Open Camera settings, make sure geotagging is enabled
  4. Within you mobile device settings, set the default camera app to Open Camera
  5. Completed! Open Camera will now be utilized while taking pictures with QField

Maximale Bildgröße

The maximum height and width can be configured in QFieldSync plugin > Project configuration

image

The advanced settings allow to rescale the photos to a maximum width/height.

Einstellung Bildablage

Desktop Vorbereitung

QFieldSync ermöglicht es, den Speicherort für Bildanhänge einzustellen.

  1. Gehe zu QFieldSync Erweiterung > Projekt Konfiguration
  2. Select the table "Photo Naming"
  3. Choose the layer, the field and configure the expression

Use expressions to configure the path of the attachments. By default, pictures are saved into the "DCIM" folder with a timestamp as name.

Speicherpfad für Bilder
Speicherpfad für Bilder

It is also possible to synchronize additional directories with pictures or other attachments. Additional paths can be configured in Attachment directories. All paths are relative to the project directory.

Anhangverzeichnisse
Anhangverzeichnisse

Anmerkung

Für diese Funktionsmöglichkeit ist QGIS 3.14 oder höher erforderlich