Skip to content

Commit cacab09

Browse files
committed
Transform GeocodedFile bbox from file's CRS
Instead of hard-coding it
1 parent c97a3a1 commit cacab09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/RAiDER/llreader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def __init__(self, path: Path, is_dem=False, cube_spacing_in_m: Optional[float]=
332332

333333
self._filename = path
334334
self.p = rio_profile(path)
335-
self._bounding_box = transform_bbox(rio_extents(self.p), dest_crs=4326, src_crs=32617)
335+
self._bounding_box = transform_bbox(rio_extents(self.p), dest_crs=4326, src_crs=self.p['crs'])
336336
self._is_dem = is_dem
337337
_, self._proj, self._geotransform = rio_stats(path)
338338
self._type = 'geocoded_file'

0 commit comments

Comments
 (0)