Skip to content

Commit 1afc52b

Browse files
authored
fix(geoarrow-pyarrow): Fix roundtrip to C and back for WkbView array (#72)
1 parent b673738 commit 1afc52b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

geoarrow-pyarrow/tests/test_pyarrow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def test_array_view_types():
150150
assert array.type == ga.wkb_view()
151151
assert array.type.storage_type == pa.binary_view()
152152

153+
schema_capsule, array_capsule = array.__arrow_c_array__()
154+
rearr = pa.Array._import_from_c_capsule(schema_capsule, array_capsule)
155+
rearr.validate(full=True)
156+
153157

154158
def test_array_repr():
155159
array = ga.array(["POINT (30 10)"])

0 commit comments

Comments
 (0)