OmniSciDB  29e35f4d58
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 530 of file RelAlgTranslatorGeo.cpp.

References kLINESTRING, kMULTIPOLYGON, kPOINT, and kPOLYGON.

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

530  {
531  if (type == kPOINT) {
532  return std::string("_Point");
533  }
534  if (type == kLINESTRING) {
535  return std::string("_LineString");
536  }
537  if (type == kPOLYGON) {
538  return std::string("_Polygon");
539  }
540  if (type == kMULTIPOLYGON) {
541  return std::string("_MultiPolygon");
542  }
543  throw QueryNotSupported("Unsupported argument type");
544 }
+ Here is the caller graph for this function: