OmniSciDB  8a228a1076
anonymous_namespace{RelAlgTranslatorGeo.cpp} Namespace Reference

Functions

std::string suffix (SQLTypes type)
 

Function Documentation

◆ suffix()

std::string anonymous_namespace{RelAlgTranslatorGeo.cpp}::suffix ( SQLTypes  type)

Definition at line 207 of file RelAlgTranslatorGeo.cpp.

References kLINESTRING, kMULTIPOLYGON, kPOINT, and kPOLYGON.

Referenced by RelAlgTranslator::translateBinaryGeoFunction(), RelAlgTranslator::translateGeoFunctionArg(), and RelAlgTranslator::translateUnaryGeoFunction().

207  {
208  if (type == kPOINT) {
209  return std::string("_Point");
210  }
211  if (type == kLINESTRING) {
212  return std::string("_LineString");
213  }
214  if (type == kPOLYGON) {
215  return std::string("_Polygon");
216  }
217  if (type == kMULTIPOLYGON) {
218  return std::string("_MultiPolygon");
219  }
220  throw QueryNotSupported("Unsupported argument type");
221 }
+ Here is the caller graph for this function: