String content = tl.getContent();
if(content.startsWith("\"")){
content = tl.getContent().substring(1, tl.getContent().length() - 1);
}
if (tl.getType().compareTo("<" + stWktDataTypeURI + ">") == 0 || tl.getType().compareTo("<" + stGeometryDataTypeURI + ">") == 0){
return new StSPARQLWktDeserializer().toGeometry(content);
}
else if(tl.getType().compareTo("<" + stGmlDataTypeURI + ">") == 0){
return new GmlDeserializer().toGeometry(content);
}
throw new TypeErrorException();