summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-08-14 13:52:25 +0100
committerTim Redfern <tim@eclectronics.org>2012-08-14 13:52:25 +0100
commite99bd175d3f6607900762941b11df2fd718e4e62 (patch)
tree0c5ce2accab55bc17fa636cbd7af955fb48c87c3
parentb058cfc85fd8770c0ef20bb6f976fb5b33e90a57 (diff)
fix bug creating index layer
-rwxr-xr-xlayers.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/layers.py b/layers.py
index 5737b36..a85ded4 100755
--- a/layers.py
+++ b/layers.py
@@ -12,14 +12,14 @@ class layer:
except:
print "gps layer: failed to open", file
try:
- l1=latlng()
- l2=latlng()
+ l1=latLng()
+ l2=latLng()
l1.parse(ll1)
l2.parse(ll2)
- tl.lat=max(l1.lat,l2.lat)
- tl.lng=min(l1.lng,l2.lng)
- br.lat=min(l1.lat,l2.lat)
- br.lng=max(l1.lng,l2.lng)
+ self.tl.lat=max(l1.lat,l2.lat)
+ self.tl.lng=min(l1.lng,l2.lng)
+ self.br.lat=min(l1.lat,l2.lat)
+ self.br.lng=max(l1.lng,l2.lng)
self.pixsize=latLng(abs(self.tl.lat-self.br.lat)/self.image.size[1],abs(self.tl.lng-self.br.lng)/self.image.size[0])
except:
print "gps layer: failed to parse", file