Skip to content

Commit d262197

Browse files
check for None crs in DriverVectorCube._convert_crs84
1 parent d180c24 commit d262197

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) or df.crs.to_epsg() is None:
422+
if df.crs is None or df.crs.to_epsg() is None or "OGC:CRS84" in str(df.crs) or "WGS 84 (CRS84)" in str(df.crs):
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)