Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Sep 24, 2024
1 parent 08ddf24 commit cc5dfcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_geoarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def test_geoarrow_table_reprojection():
b"ARROW:extension:metadata" in geom_field.metadata
), "Metadata key should exist"

crs_str = json.loads(geom_field.metadata[b"ARROW:extension:metadata"])["crs"]
assert gdf.crs == CRS.from_json(crs_str), "round trip crs should match gdf crs"
crs_dict = json.loads(geom_field.metadata[b"ARROW:extension:metadata"])["crs"]
assert gdf.crs == CRS.from_json_dict(
crs_dict
), "round trip crs should match gdf crs"

layer = SolidPolygonLayer(table=table)

Expand Down

0 comments on commit cc5dfcf

Please sign in to comment.