OmniSciDB  ca0c39ec8f
 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  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 68 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().

68  {
69  if (type == kPOINT) {
70  return std::string("_Point");
71  }
72  if (type == kMULTIPOINT) {
73  return std::string("_MultiPoint");
74  }
75  if (type == kLINESTRING) {
76  return std::string("_LineString");
77  }
78  if (type == kMULTILINESTRING) {
79  return std::string("_MultiLineString");
80  }
81  if (type == kPOLYGON) {
82  return std::string("_Polygon");
83  }
84  if (type == kMULTIPOLYGON) {
85  return std::string("_MultiPolygon");
86  }
87  UNREACHABLE() << "Unsupported argument to suffix: " << toString(type);
88  return "";
89 }
#define UNREACHABLE()
Definition: Logger.h:266
std::string toString(const QueryDescriptionType &type)
Definition: Types.h:64

+ Here is the call graph for this function:

+ Here is the caller graph for this function: