Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit da024bf

Browse files
fix: bug
1 parent e9f8dd1 commit da024bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s2p/rpc_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def min_max_heights_from_bbx(im, lon_m, lon_M, lat_m, lat_M, rpc, exogenous_dem_
109109
assert len([x for x in proj_crs.sub_crs_list if x.is_vertical]) == 1, f"Found more than 1 vertical CRS {proj_crs.sub_crs_list}"
110110
horizontal_crs = [x for x in proj_crs.sub_crs_list if not x.is_vertical][0]
111111
vertical_datum = [x for x in proj_crs.sub_crs_list if x.is_vertical][0]
112-
crs_epsg = f"epsg:{horizontal_crs}+{vertical_datum}"
112+
crs_epsg = f"epsg:{horizontal_crs.to_epsg()}+{vertical_datum.to_epsg()}"
113113
else:
114114
crs_epsg = proj_crs.to_epsg()
115115
# convert lon/lat to im projection

0 commit comments

Comments
 (0)