From dcff1b877d9b14bdf7d164d2ed8321c6b8f9cfb0 Mon Sep 17 00:00:00 2001 From: vforchi <vforchi@users.noreply.github.com> Date: Wed, 22 Feb 2017 09:43:50 +0100 Subject: [PATCH] improved recognition of geometries --- src/tap/data/ResultSetTableIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tap/data/ResultSetTableIterator.java b/src/tap/data/ResultSetTableIterator.java index 487dde7..ef57904 100644 --- a/src/tap/data/ResultSetTableIterator.java +++ b/src/tap/data/ResultSetTableIterator.java @@ -731,7 +731,7 @@ public class ResultSetTableIterator implements TableIterator { else if (colType != null && colValue != null && colType.type == DBDatatype.CHAR && (colType.length == 1 || colType.length <= 0) && colValue instanceof String) colValue = ((String)colValue).charAt(0); // if the column value is a geometrical object, it must be serialized in STC-S: - else if ((translator != null && colType != null && colType.isGeometry()) || colType.type == DBDatatype.VARBINARY) { + else if ((translator != null && colType != null && colType.isGeometry()) || colValue instanceof byte[]) { try{ Region region = translator.translateGeometryFromDB(colValue); if (region != null) -- GitLab