Skip to content

Commit 97a300c

Browse files
committed
fixing swapped variables
1 parent aec7a54 commit 97a300c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vec_geohash/vec_geohash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,6 @@ def pixel_tuple_to_lat_lon_tuple(latitude, longitude, zoom):
272272
def lat_lon_bounds_to_tile_range(bounds, zoom):
273273
"""Converts bounds [[min_lon, min_lat, max_lon, max_lat]] from GeoDataFrame to tile coords [[min_x, min_y, max_x, max_y]]."""
274274
lon_min, lat_min, lon_max, lat_max = bounds.T
275-
tile_x_min, tile_y_max = lat_lon_to_tile(lat_max, lon_min, zoom)
276-
tile_x_max, tile_y_min = lat_lon_to_tile(lat_min, lon_max, zoom)
275+
tile_x_min, tile_y_min = lat_lon_to_tile(lat_max, lon_min, zoom)
276+
tile_x_max, tile_y_max = lat_lon_to_tile(lat_min, lon_max, zoom)
277277
return np.array([tile_x_min, tile_y_min, tile_x_max, tile_y_max]).T

0 commit comments

Comments
 (0)