kartaview / upload-scripts

Uploader tools for KartaView
MIT License
59 stars 30 forks source link

Is camera direction/heading required? #82

Closed bikeoid closed 2 years ago

bikeoid commented 5 years ago

When reading a sequence of type Exif_photo, in exif_processing,py , function gps_compass accepts a photo if no compass direction exists. But later the script will crash while logging in visual_data_discover.py at line (because of photo.gps_compass having a None value

LOGGER.debug("lat/lon/compass: %f/%f/%f", photo.latitude, photo.longitude, photo.gps_compass)

For now, I'm pre-filtering out any photos without a heading to prevent a crash. Not sure if compass heading should be mandatory or not?

salabogdan commented 2 years ago

Fixed.