Skip to content

Commit e1f639e

Browse files
also fall back to 4236 when pyproj cannot find an epsg code
1 parent 3ad6524 commit e1f639e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo_driver/datacube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def from_parquet(
419419

420420
@staticmethod
421421
def _convert_crs84(df: GeoDataFrame):
422-
if "OGC:CRS84" in str(df.crs) or "WGS 84 (CRS84)" in str(df.crs):
422+
if "OGC:CRS84" in str(df.crs) or "WGS 84 (CRS84)" in str(df.crs) or df.crs.to_epsg() is None:
423423
# workaround for not being able to decode ogc:crs84
424424
df.crs = CRS.from_epsg(4326)
425425
return df

0 commit comments

Comments
 (0)