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 interval = Math.round(gpxData[sequence_name].length / photos_count_in_sequence)
|
||||||
let ii = 1;
|
let ii = 1;
|
||||||
console.log('--------- sequence_name', sequence_name)
|
console.log('--------- sequence_name', sequence_name)
|
||||||
console.log('--------- interval', interval)
|
console.log('--------- interval: prendre une donnée gps tous les ', interval, 'points de la trace de séquence')
|
||||||
// tableKartaviewTrace.forEach((elem: any) => {
|
let jj=0
|
||||||
// // only work on an interval of files to assign gps coordinates
|
let photo_counter = 0
|
||||||
// ii--
|
gpxData[sequence_name].forEach((elem: any) => {
|
||||||
// if(ii<=0){
|
// only work on an interval of files to assign gps coordinates
|
||||||
// // set the gps coordinates to the picture in sequence
|
jj++
|
||||||
// let timestamp = elem[6] * 1000
|
ii--
|
||||||
// let date = new Date(timestamp)
|
if(ii<=0){
|
||||||
// ii =interval*1
|
// 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) {
|
function openKartaviewTxtGPX(filepath: any, sequence_name: string) {
|
||||||
|
|
Loading…
Reference in New Issue