(* ::Package:: *)

(************************************************************************)\012(* This file was generated automatically by the Mathematica front end.  *)\012(* It contains Initialization cells from a Notebook file, which         *)\012(* typically will have the same name as this file except ending in      *)\012(* ".nb" instead of ".m".                                               *)\012(*                                                                      *)\012(* This file is intended to be loaded into the Mathematica kernel using *)\012(* the package loading commands Get or Needs.  Doing so is equivalent   *)\012(* to using the Evaluate Initialization Cells menu command in the front *)\012(* end.                                                                 *)\012(*                                                                      *)\012(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)\012(* automatically each time the parent Notebook file is saved in the     *)\012(* Mathematica front end.  Any changes you make to this file will be    *)\012(* overwritten.                                                         *)\012(************************************************************************)\012\012

(* ::Input::Initialization:: *)
Module[{fs,data,f,p},
Echo@SetDirectory["C:\\drorbn\\Album\\Summaries"];
fs=FileNames["../*/*.gpx"]\[Union]FileNames["../*/*.kml"];
fs=Complement[fs,
Union[
StringReplace[{"@.gpx"->".gpx", "@.kml"->".kml"}]/@Select[fs,StringPart[#,-5]=="@"&],
FileNames["../2024_Greater_Toronto_Stay_in_Place/*.gpx"],
FileNames["../2025_Greater_Toronto_Stay_in_Place/*.gpx"],
{
"..\\2022.05.08-12_Napoli_and_Around\\Day1Path.kml","..\\2022.05.08-12_Napoli_and_Around\\Day2Path.kml","..\\2022.05.08-12_Napoli_and_Around\\Day3Path.kml","..\\2022.05.08-12_Napoli_and_Around\\Day4Path.kml","..\\2022.05.08-12_Napoli_and_Around\\Day5Path.kml",
"..\\2021.07.03_Stratford_-_New_Hamburg_-_Wellesley_Loop\\2021-07-03_06-04_Sat.gpx"
}
]
];
If[Or[
!FileExistsQ["AllTracksData.m"],Max[FileDate/@fs]>FileDate["AllTracksData.m"]
],
Monitor[Short[data=Union@Table[
"Geometry"/.Import[f,"Data"]/.p:GeoPosition[{_,None}]:>Nothing[Print["In ",f," removed ",p,"."]],
{f,fs}]],f];
Put[data,"AllTracksData.m"],
data=Get["AllTracksData.m"]
];
Echo@ResetDirectory[];
data
]
