From: Tom Hughes Date: Tue, 2 Oct 2012 09:18:03 +0000 (+0100) Subject: Generate better KML when crossing the date line from west to east X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/6004f25fa858b4e61b526a27aaa914985e7ac315 Generate better KML when crossing the date line from west to east --- 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");