OmniSciDB  04ee39c94c
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 523 of file RelAlgTranslatorGeo.cpp.

References kLINESTRING, kMULTIPOLYGON, kPOINT, and kPOLYGON.

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

523  {
524  if (type == kPOINT) {
525  return std::string("_Point");
526  }
527  if (type == kLINESTRING) {
528  return std::string("_LineString");
529  }
530  if (type == kPOLYGON) {
531  return std::string("_Polygon");
532  }
533  if (type == kMULTIPOLYGON) {
534  return std::string("_MultiPolygon");
535  }
536  throw QueryNotSupported("Unsupported argument type");
537 }
+ Here is the caller graph for this function: