enricofer / go2mapillary

a plugin for displaying and extracting information from Mapillary street level imagery with QGIS (3.0)
GNU General Public License v3.0
34 stars 14 forks source link

Date of image #10

Closed bostig closed 6 years ago

bostig commented 6 years ago

HI,

Is it possibile to add label with date of image taken?

Regards, Bosti

enricofer commented 6 years ago

Hi Bosti, I'm planning some plugin improvements, including filtering and image/sequence metadata visualization. In the meanwhile you can get the image/sequence date looking into attribute table of Mapillary_images and Mapillary_coverage layers. In there you will find a "captured_at" field reporting the milliseconds unix timestamp. Unfortunately in QGIS there ins't a native expression function for converting timestamp to datetime format so you would have to define a custom expression function in python:

from datetime import datetime
@qgsfunction(args='auto', group='Custom')
def from_timestamp(value1, feature, parent):
    return datetime.fromtimestamp(value1)

otherwise you can convert it online with a dedicated webservice: https://www.unixtimestamp.com/

enricofer commented 6 years ago

http://plugins.qgis.org/plugins/go2mapillary/ Implemented in the last release 2.0 with info button