Skip to content

Commit dddb70b

Browse files
committed
fix mgrs tiles filter
1 parent b7d1ef4 commit dddb70b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/api_regularize.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@
201201
dplyr::group_map(~{
202202
# prepare a sf object representing the bbox of each image in file_info
203203
cube_crs <- dplyr::filter(cube, .data[["crs"]] == .x$crs)
204+
if (nrow(cube_crs) == 0) {
205+
cube_crs <- cube
206+
}
204207
fi_bbox <- .bbox_as_sf(.bbox(
205208
x = .fi(cube_crs),
206209
default_crs = .crs(cube_crs),

0 commit comments

Comments
 (0)