fix: solve comparing int and string

pull/61/head
Sami Mokaddem 2018-05-09 12:59:03 +02:00
parent f2c91c14e6
commit eafc61e058
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ class Geo_helper:
# by EPSG:900913 / EPSG:3785 / OSGEO:41001
# coord_list = [lat, lon]
def coordinate_list_valid(self, coord_list):
lat = coord_list[0]
lon = coord_list[1]
lat = int(coord_list[0])
lon = int(coord_list[1])
if (-180 <= lon <= 180) and (-85.05112878 <= lat <= 85.05112878):
return True
else: