Skip to content

Commit d88ecea

Browse files
committed
Make WKT to behave like a string
1 parent bd97bf8 commit d88ecea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tiledb/cc/common.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ std::unordered_map<tiledb_datatype_t, std::string> _tdb_to_np_name_dtype = {
4949
#endif
5050
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 21
5151
{TILEDB_GEOM_WKB, "byte"},
52-
{TILEDB_GEOM_WKT, "S1"},
52+
{TILEDB_GEOM_WKT, "S"},
5353
#endif
5454
};
5555

tiledb/core.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ py::dtype tiledb_dtype(tiledb_datatype_t type, uint32_t cell_val_num) {
234234
case TILEDB_GEOM_WKB:
235235
return py::dtype("byte");
236236
case TILEDB_GEOM_WKT:
237-
return py::dtype("S1");
237+
return py::dtype("S");
238238
#endif
239239

240240
case TILEDB_ANY:

tiledb/tests/test_attribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def test_wkt_attribute(self):
271271
# read back the data
272272
with tiledb.DenseArray(self.path("foo"), mode="r") as T:
273273
for i in range(2):
274-
assert_array_equal(T[:][i].tobytes(), A[i])
274+
assert_array_equal(T[i], A[i])
275275

276276
def test_wkb_attribute(self):
277277
A = np.array(

0 commit comments

Comments
 (0)