We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d371dde commit 47e7866Copy full SHA for 47e7866
pyogrio/_io.pyx
@@ -1622,7 +1622,7 @@ def ogr_write(
1622
# TODO: geometry must not be null or errors
1623
wkb = geometry[i]
1624
if wkb is not None:
1625
- wkbtype = bytearray(wkb)[1]
+ wkbtype = <int>bytearray(wkb)[1]
1626
# may need to consider all 4 bytes: int.from_bytes(wkb[0][1:4], byteorder="little")
1627
# use "little" if the first byte == 1
1628
ogr_geometry = OGR_G_CreateGeometry(<OGRwkbGeometryType>wkbtype)
0 commit comments