debug which file to apply exif tags
This commit is contained in:
parent
46206f4401
commit
f35d3103c1
@ -113,18 +113,32 @@ function reduceGpxPointsToInterval(sequence_name: any) {
|
||||
let interval = Math.round(gpxData[sequence_name].length / photos_count_in_sequence)
|
||||
let ii = 1;
|
||||
console.log('--------- sequence_name', sequence_name)
|
||||
console.log('--------- interval', interval)
|
||||
// tableKartaviewTrace.forEach((elem: any) => {
|
||||
// // only work on an interval of files to assign gps coordinates
|
||||
// ii--
|
||||
// if(ii<=0){
|
||||
// // set the gps coordinates to the picture in sequence
|
||||
// let timestamp = elem[6] * 1000
|
||||
// let date = new Date(timestamp)
|
||||
// ii =interval*1
|
||||
// }
|
||||
//
|
||||
// })
|
||||
console.log('--------- interval: prendre une donnée gps tous les ', interval, 'points de la trace de séquence')
|
||||
let jj=0
|
||||
let photo_counter = 0
|
||||
gpxData[sequence_name].forEach((elem: any) => {
|
||||
// only work on an interval of files to assign gps coordinates
|
||||
jj++
|
||||
ii--
|
||||
if(ii<=0){
|
||||
// set the gps coordinates to the picture in sequence
|
||||
let timestamp = elem[6] * 1000
|
||||
let lat = elem[0]
|
||||
let lon = elem[1]
|
||||
let date = new Date(timestamp)
|
||||
let iso = date.toISOString()
|
||||
console.log('* point de trace n°', jj)
|
||||
console.log('* lat, lon', lat,lon)
|
||||
console.log('* date iso', iso)
|
||||
ii =interval*1
|
||||
photo_counter++
|
||||
|
||||
let file_photo_name = photo_folders_counter[sequence_name][photo_counter]
|
||||
console.log('file_photo_name to apply exif data', file_photo_name)
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
function openKartaviewTxtGPX(filepath: any, sequence_name: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user