Switch lat and lon in kdtree
This commit is contained in:
parent
a06ff6f837
commit
d0fa7c9960
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ class SourcePoint:
|
|||
|
||||
def __getitem__(self, i):
|
||||
if i == 0:
|
||||
return self.lat
|
||||
elif i == 1:
|
||||
return self.lon
|
||||
elif i == 1:
|
||||
return self.lat
|
||||
else:
|
||||
raise ValueError('A SourcePoint has only lat and lon in a list')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue