Skip to content

Commit

Permalink
corrected error in distance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Aug 30, 2024
1 parent 58b2eba commit 0da202a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_layer_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def estimate_spatial_resolution(data):
diff_distance = y_max - y_min
elif crs_unit == 'degree':
x_min = data['x'].values.min()
diff_distance = get_distance_between_geocoordinates(x_min, y_min, x_min, y_max)
diff_distance = get_distance_between_geocoordinates(y_min, x_min, y_max, x_min)
else:
raise Exception('Unhandled projection units: %s' % crs_unit)

Expand Down

0 comments on commit 0da202a

Please sign in to comment.