From 3952a24a6f165ce1ed467ae22f5836902e02e548 Mon Sep 17 00:00:00 2001
From: vforchi <vforchi@users.noreply.github.com>
Date: Wed, 22 Feb 2017 13:35:24 +0100
Subject: [PATCH] removed workaround to handle geometries after it was fixed
 properly

---
 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 91d5545..91a8faa 100644
--- a/src/tap/data/ResultSetTableIterator.java
+++ b/src/tap/data/ResultSetTableIterator.java
@@ -734,7 +734,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()) || colValue instanceof byte[]) {
+			else if (translator != null && colType != null && colType.isGeometry()) {
 				try{
 					Region region = translator.translateGeometryFromDB(colValue);
 					if (region != null)
-- 
GitLab