(* ::Package:: *)

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



(* ::Input::Initialization:: *)
SetDirectory["C:\\drorbn\\Album\\Summaries"];


(* ::Input::Initialization:: *)
fs=FileNames["../*/*.gpx"]\[Union]FileNames["../*/*.kml"];
Short[fs=Complement[fs,
Union[
StringReplace[{"@.gpx"->".gpx", "@.kml"->".kml"}]/@Select[fs,StringPart[#,-5]=="@"&],
FileNames["../2024_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"
}
]
],5]


(* ::Input::Initialization:: *)
Monitor[Short[data=Union@Table[
"Geometry"/.Import[f,"Data"]/.p:GeoPosition[{_,None}]:>Nothing[Print["In ",f," removed ",p,"."]],
{f,fs}]],f]


(* ::Input::Initialization:: *)
res=1200;
Rasterize[map=GeoGraphics[{Red,Thick,data},
GeoCenter->{0,0},GeoScaleBar->"Kilometers",ImageSize ->res
], RasterSize ->res]
Export["World.png",map];



