From 6004f25fa858b4e61b526a27aaa914985e7ac315 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 2 Oct 2012 10:18:03 +0100 Subject: [PATCH] Generate better KML when crossing the date line from west to east --- bin/mkgeo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/mkgeo b/bin/mkgeo index aa79f7b..6474a76 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -109,6 +109,10 @@ foreach my $country (values %countries) { $clon = $clon - 360; } + elsif ($slon > 0 && $clon < 0 && 360 + $clon - $slon < $slon - $clon) + { + $slon = $slon - 360; + } $zonefile->print("C\L$country->{code}\E.${zone}:$servers[0]->{name}.${zone}:600\n"); -- 2.43.2