Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry is not saved when using Tracking function and saving images to 'Gallery' (Parent/Child) #5610

Open
gis-kmg opened this issue Sep 5, 2024 · 0 comments

Comments

@gis-kmg
Copy link

gis-kmg commented Sep 5, 2024

Describe the issue

Geometry is not saved when using Tracking function and saving images to 'Gallery' (Parent/Child)

Reproduction steps

Steps to reproduce the behavior:

  1. Follow configuration for project to support photo 'Gallery' using Parent/Child relationship as per https://www.youtube.com/watch?v=Kec-PsiZt6k
  2. Load project onto QField App
  3. Enable Tracking on Line Feature Layer, fill in attributes and add photos to gallery on child table
  4. Save photos in child table and save parent line layer (log message popup appears on canvas)
  5. Go to line layer and stop tracking
  6. Result: Parent and child is saved, however track geometry is not saved for line feature

Expected behavior

Track is visible on canvas for feature after tracking is stopped

Observed behavior

If i manually draw the line feature on map canvas and attach photos the changes will save correctly.
If i use tracking to create the line but don't attach a photo it will save correctly. I can also then later edit it and save photos.
If i use tracking and attach a photo the attributes are saved to both tables (Line layer + Photo table) but the actual geometry is not recorded against the line feature.

Logs:
--Layer "Track" cannot be commited with the newly created feature -4. Reason:
ERROR: 1 feature(s) not added.

Provider errors:
OGR error creating feature -4: failed to execute insert : UNIQUE constraint failed: tracks_ca86a9fa_10cc_4901_9263_2f5c8c361ea0.fid_1
--Unbalanced call to leaveUpdateMode() w.r.t. enterUpdateMode()
--Could not save changes. Rolling back.
--Commit errors:
ERROR: 1 feature(s) not added.

Provider errors:
OGR error creating feature -4: failed to execute insert : UNIQUE constraint failed: tracks_ca86a9fa_10cc_4901_9263_2f5c8c361ea0.fid_1

Screenshots and GIFs

image

QGIS (please complete the following information)

  • OS: Windows 10
  • QGIS Version: 3.34.10-Prizren
  • QFieldSync Version: 4.10.1

QField (please complete the following information)

  • Device: iPhone SE
  • OS: 17.6.1
  • QField version: 3.3.11 - Darien (f59b22 v3.3.11) Qt 6.6.3

Additional information

  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
  • Problem happens with all files and projects, not only some files or projects: [Yes]

[If the problem happened with QFieldCloud, please add your username and project name.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant