Switch lat and lon in kdtree

This commit is contained in:
Ilya Zverev 2018-05-28 17:45:01 +03:00
parent a06ff6f837
commit d0fa7c9960

View file

@ -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')