Compare commits
2 Commits
6a6753d97c
...
69e1b8ca7b
Author | SHA1 | Date | |
---|---|---|---|
69e1b8ca7b | |||
2afaf45d7e |
@ -4,13 +4,11 @@
|
||||
**/
|
||||
|
||||
// @ts-ignore
|
||||
import piexif from 'piexif';
|
||||
import * as fs from 'node:fs';
|
||||
// @ts-ignore
|
||||
import path from "node:path";
|
||||
// @ts-ignore
|
||||
import minimist from 'minimist';
|
||||
import * as Buffer from "buffer";
|
||||
// @ts-ignore
|
||||
const moment = require("moment");
|
||||
|
||||
@ -69,7 +67,6 @@ if (mini_arguments['gpx-input']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// let dossier_photo: string = folder + "test_photo_apply"
|
||||
let dossier_photo: string = folder_photos
|
||||
let dossier_gpx_input: string = folder + "metadata_file"
|
||||
@ -92,6 +89,7 @@ function makeGpxFromKartaview(tableKartaviewTrace: any) {
|
||||
tableKartaviewTrace.forEach((elem: any) => {
|
||||
// console.log('elem', elem)
|
||||
// console.log('elem', elem[6] *1000)
|
||||
if (elem.length && elem[6]) {
|
||||
let utc_time = new Date(elem[6] * 1000)
|
||||
|
||||
// console.log('utc_time', utc_time.toISOString())
|
||||
@ -100,6 +98,9 @@ function makeGpxFromKartaview(tableKartaviewTrace: any) {
|
||||
<time>${utc_time.toISOString()}</time>
|
||||
</trkpt>
|
||||
`
|
||||
}else{
|
||||
console.log('!!!!!! makeGpxFromKartaview no good element in gpx', elem)
|
||||
}
|
||||
})
|
||||
|
||||
let content = `<?xml version='1.0' encoding='UTF-8'?>
|
||||
@ -229,7 +230,7 @@ function openKartaviewTxtGPX(filepath: any, sequence_name: string) {
|
||||
gpxData[sequence_name] = [...tableKartaviewTrace]
|
||||
|
||||
|
||||
// console.log('gpxData', gpxData)
|
||||
console.log(' makeGpxFromKartaview for sequence ', sequence_name)
|
||||
let content_gpx = makeGpxFromKartaview(tableKartaviewTrace)
|
||||
|
||||
|
||||
|
@ -113,11 +113,14 @@
|
||||
|
||||
<title>OpenStreetMap</title>
|
||||
</head>
|
||||
<body>
|
||||
<body class="site site-about">
|
||||
|
||||
<div id="main">
|
||||
|
||||
<div id="content">
|
||||
<div class="content-body">
|
||||
|
||||
|
||||
<header class="closed clearfix">
|
||||
<h1>
|
||||
<a class="geolink" href="https://www.openstreetmap.org/">
|
||||
@ -235,16 +238,36 @@
|
||||
<div id="content_inner">
|
||||
<div class="content-inner">
|
||||
|
||||
<div dir="ltr" lang="fr">
|
||||
<div class="container-lg attr">
|
||||
<div class="row">
|
||||
<div class="col-sm-7 user-image"></div>
|
||||
<div class="col-sm-5 px-5 py-3 byosm">
|
||||
<p class="h5 text-white text-nowrap">
|
||||
<span>©</span>contributeurs<br> d’OpenStreetMap
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="px-5 py-4 bg-dark">
|
||||
<h1 id="head" class="text-white fw-light">
|
||||
<img alt="icon" class="custom-icon icon-noun" src="img/noun-heart-5454846.svg">
|
||||
<span class="user-name">OpenStreetMap</span> la base de données cartographique ouverte, collaborative et mondiale
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<article>
|
||||
|
||||
<div class="heading-box">
|
||||
|
||||
<h1 id="head">
|
||||
<img alt="icon" class="custom-icon icon-noun" src="img/noun-heart-5454846.svg">
|
||||
<!-- <h1 id="head">-->
|
||||
<!-- <img alt="icon" class="custom-icon icon-noun" src="img/noun-heart-5454846.svg">-->
|
||||
<!-- noun-heart-5454846-->
|
||||
OpenStreetMap : la base de données cartographique ouverte, collaborative et mondiale
|
||||
</h1>
|
||||
<!-- OpenStreetMap : la base de données cartographique ouverte, collaborative et mondiale-->
|
||||
<!-- </h1>-->
|
||||
|
||||
<p>
|
||||
<div class="lang-selector">
|
||||
@ -531,6 +554,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user