Skip to content

Commit 6f25af8

Browse files
committed
OPTIM: Don't touch the raster (even if ortho) when computing the extent of SAR products
1 parent 0928a8e commit 6f25af8

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- FIX: Correctly propagate pixel size into band file names
2424
- OPTIM: Better management of windows wrt whole files with SAR data
2525
- OPTIM: Don't set a window name if band files if the window corresponds to the band extent [#286](https://github.com/sertit/eoreader/issues/286)
26+
- OPTIM: Don't touch the raster (even if ortho) when computing the extent of SAR products
2627
- SNAP: SNAP-GPT - Subset in read operator instead of adding a subset operator
2728
- DOC: Update copyright to 2026
2829

eoreader/products/sar/sar_product.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,14 +433,11 @@ def extent(self) -> gpd.GeoDataFrame:
433433
Returns:
434434
gpd.GeoDataFrame: Extent in UTM
435435
"""
436-
if self.is_ortho:
437-
return super().extent()
438-
else:
439-
# Get WGS84 extent
440-
extent_wgs84 = self.wgs84_extent()
436+
# Get WGS84 extent
437+
extent_wgs84 = self.wgs84_extent()
441438

442-
# Convert to UTM
443-
return extent_wgs84.to_crs(self.crs())
439+
# Convert to UTM
440+
return extent_wgs84.to_crs(self.crs())
444441

445442
@cache
446443
def crs(self) -> crs.CRS:

0 commit comments

Comments
 (0)