OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
spatial_type Namespace Reference

Classes

class  AreaPerimeter
 
class  Centroid
 
class  Codegen
 
class  Distance
 
class  NPoints
 
class  NRings
 
class  NumGeometries
 
class  PointAccessors
 
class  PointConstructor
 
class  PointN
 
class  StartEndPoint
 
class  Transform
 

Functions

std::string suffix (SQLTypes type)
 

Function Documentation

std::string spatial_type::suffix ( SQLTypes  type)

Definition at line 75 of file Codegen.cpp.

References kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kPOINT, kPOLYGON, toString(), and UNREACHABLE.

Referenced by spatial_type::AreaPerimeter::codegen(), spatial_type::Centroid::codegen(), spatial_type::Distance::codegen(), anonymous_namespace{DateTimeParser.cpp}::eatMonth(), enum_name(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), import_export::RasterImporter::getBandName(), RelAlgTranslator::translateBinaryGeoFunction(), RelAlgTranslator::translateTernaryGeoFunction(), RelAlgTranslator::translateUnaryGeoFunction(), and type_name().

75  {
76  if (type == kPOINT) {
77  return std::string("_Point");
78  }
79  if (type == kMULTIPOINT) {
80  return std::string("_MultiPoint");
81  }
82  if (type == kLINESTRING) {
83  return std::string("_LineString");
84  }
85  if (type == kMULTILINESTRING) {
86  return std::string("_MultiLineString");
87  }
88  if (type == kPOLYGON) {
89  return std::string("_Polygon");
90  }
91  if (type == kMULTIPOLYGON) {
92  return std::string("_MultiPolygon");
93  }
94  UNREACHABLE() << "Unsupported argument to suffix: " << toString(type);
95  return "";
96 }
#define UNREACHABLE()
Definition: Logger.h:338
std::string toString(const Executor::ExtModuleKinds &kind)
Definition: Execute.h:1703

+ Here is the call graph for this function:

+ Here is the caller graph for this function: