Skip to content

Commit 6ba8606

Browse files
jp-darkperrygeo
andauthored
Use separate hasattr checks for wkt and wkb
Co-authored-by: Matthew Perry <[email protected]>
1 parent e1d7982 commit 6ba8606

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tiledb/datatypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def from_numpy(cls, dtype: np.dtype) -> DataType:
2828
if dtype == "wkb":
2929
return cls(np.dtype("S"), lt.DataType.GEOM_WKB, 1)
3030

31+
if hasattr(lt.DataType, "GEOM_WKT"):
3132
if dtype == "wkt":
3233
return cls(np.dtype("S"), lt.DataType.GEOM_WKT, 1)
3334

0 commit comments

Comments
 (0)