Skip to content

Commit a7a2513

Browse files
authored
Merge pull request #1172 from pjonsson/extents-only-when-used
extents: only get shapes when used
2 parents 30d9453 + 36ec624 commit a7a2513

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cubedash/summary/_extents.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ def refresh_spatial_extents(
239239
if "sat_path" in product.metadata_type.dataset_fields:
240240
# We can synthesize the polygons!
241241
log.info("spatial_synthesizing")
242-
shapes = _get_path_row_shapes()
243242
rows = [
244243
row
245244
for row in e_index.ds_search_returning(
@@ -248,7 +247,7 @@ def refresh_spatial_extents(
248247
if row.sat_path.lower is not None
249248
]
250249
if rows:
251-
e_index.synthesize_dataset_footprint(rows, shapes)
250+
e_index.synthesize_dataset_footprint(rows, _get_path_row_shapes())
252251
log.info("spatial_synthesizing.end")
253252

254253
return changed

0 commit comments

Comments
 (0)