File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1055,6 +1055,11 @@ def assign_coordinates(*args, **kwargs):
10551055
10561056
10571057def estimate_matching_threshold (coords_to_assign ):
1058+ if len (coords_to_assign ) < 2 :
1059+ raise ValueError (
1060+ "The coordinate assignement threshold cannot be"
1061+ "estimated for a single coordinate. Please set the threshold explicitly"
1062+ )
10581063 return 2 * max (abs (r ) for r in get_resolution (coords_to_assign .T ))
10591064
10601065
@@ -1131,7 +1136,7 @@ def match_coordinates(
11311136 across the antimeridian. However, when exact matches are enforced with `threshold=0`, lat/lon
11321137 coordinates need to be given in the same longitudinal range (such as (-180, 180)).
11331138 """
1134- crs = PCRS .from_user_input (DEF_CRS )
1139+ crs = PCRS .from_user_input (crs )
11351140
11361141 if coords .shape [0 ] == 0 :
11371142 return np .array ([])
You can’t perform that action at this time.
0 commit comments