diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-08-14 13:52:25 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-08-14 13:52:25 +0100 |
| commit | e99bd175d3f6607900762941b11df2fd718e4e62 (patch) | |
| tree | 0c5ce2accab55bc17fa636cbd7af955fb48c87c3 | |
| parent | b058cfc85fd8770c0ef20bb6f976fb5b33e90a57 (diff) | |
fix bug creating index layer
| -rwxr-xr-x | layers.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |
