aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchris <chris>2006-09-20 15:20:30 +0000
committerchris <chris>2006-09-20 15:20:30 +0000
commitdfec3f547a5a5f63a4759a442569ae060848d0e6 (patch)
tree32b27b22d01367e3bcba9917d1432f004e6341cb
parent5ebe6ff01d92996f89aac0bfde3fca0a75f1553d (diff)
D'oh!
-rwxr-xr-xmaketiles/fixindex4
1 files changed, 2 insertions, 2 deletions
diff --git a/maketiles/fixindex b/maketiles/fixindex
index 92b449a47..8bfed69db 100755
--- a/maketiles/fixindex
+++ b/maketiles/fixindex
@@ -7,7 +7,7 @@
# Email: chris@mysociety.org; WWW: http://www.mysociety.org/
#
-my $rcsid = ''; $rcsid .= '$Id: fixindex,v 1.1 2006-09-20 15:07:58 chris Exp $';
+my $rcsid = ''; $rcsid .= '$Id: fixindex,v 1.2 2006-09-20 15:20:30 chris Exp $';
use strict;
@@ -17,7 +17,7 @@ while (defined(my $line = <STDIN>)) {
chomp($line);
if ($line =~ /^(0|[1-9]\d*) (0|[1-9]\d*) ([0-9a-f]+)$/) {
my ($x, $y, $id) = ($1, $2, $3);
- $y = int($y / SUBTILES_PER_TILE)
+ $y = int($y / SUBTILES_PER_TILE) * SUBTILES_PER_TILE
+ SUBTILES_PER_TILE - 1 - ($y % SUBTILES_PER_TILE);
print "$x $y $id\n";
} else {