OmniSciDB  a47db9e897
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{RelAlgTranslatorGeo.cpp} Namespace Reference

Functions

std::string suffix (SQLTypes type)
 

Function Documentation

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

Definition at line 529 of file RelAlgTranslatorGeo.cpp.

References kLINESTRING, kMULTIPOLYGON, kPOINT, and kPOLYGON.

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

529  {
530  if (type == kPOINT) {
531  return std::string("_Point");
532  }
533  if (type == kLINESTRING) {
534  return std::string("_LineString");
535  }
536  if (type == kPOLYGON) {
537  return std::string("_Polygon");
538  }
539  if (type == kMULTIPOLYGON) {
540  return std::string("_MultiPolygon");
541  }
542  throw QueryNotSupported("Unsupported argument type");
543 }

+ Here is the caller graph for this function: