Skip to content

Added photos all have NULL lat and lng in database #354

@ghost

Description

I have photos in two directories, one of which is shared with four other accounts. The other is not shared.

When manually scanning using
su http -c ./occ maps:scan-photos
from the root of my Nextcloud installation, the output shows it scans all photos from both directories, and does this in my accounts as well as the account with which I have shared these photos. The logs show only starting and stopping the scan job, but no errors or warnings.

AJAX triggered background scans have the same result.

When looking into the database, the table "oc_maps_photos" contains only a fraction (38) of the photos scanned. For all of them the user_id column contains the name of one of the accounts I shared the photos with, the lat and lng columns are empty and the date_taken column is populated.

When redoing the scan, the database only contains fourteen photos, again without any lat or lng data.

All photos have EXIF GPS data. This is an example from one of the photo's:

$ identify -format '%[EXIF:*]' 20200401_105953.jpg | grep GPS
exif:GPSAltitude=0/1000
exif:GPSAltitudeRef=0
exif:GPSDateStamp=2020:04:01
exif:GPSInfo=735
exif:GPSLatitude=52/1, 24/1, 243035/10000
exif:GPSLatitudeRef=N
exif:GPSLongitude=4/1, 56/1, 3047/10000
exif:GPSLongitudeRef=E
exif:GPSProcessingMethod=65, 83, 67, 73, 73, 0, 0, 0, 67, 69, 76, 76, 73, 68, 0
exif:GPSTimeStamp=8/1, 59/1, 52/1

I would expect all photos to be added, for all accounts mentioned during scanning, and that their lat and lng data would be filled in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions