Skip to content

Commit

Permalink
fix: .sr has attributes, not keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdadams committed Oct 7, 2024
1 parent 66316c1 commit 3004900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/palletjack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def sedf_to_gdf(dataframe):
gdf = gpd.GeoDataFrame(dataframe, geometry=dataframe.spatial.name)
try:
gdf.set_crs(dataframe.spatial.sr["latestWkid"], inplace=True)
except KeyError:
except AttributeError:
gdf.set_crs(dataframe.spatial.sr["wkid"], inplace=True)

return gdf
Expand Down

0 comments on commit 3004900

Please sign in to comment.