OmniSciDB  72c90bc290
 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 69 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().

69  {
70  if (type == kPOINT) {
71  return std::string("_Point");
72  }
73  if (type == kMULTIPOINT) {
74  return std::string("_MultiPoint");
75  }
76  if (type == kLINESTRING) {
77  return std::string("_LineString");
78  }
79  if (type == kMULTILINESTRING) {
80  return std::string("_MultiLineString");
81  }
82  if (type == kPOLYGON) {
83  return std::string("_Polygon");
84  }
85  if (type == kMULTIPOLYGON) {
86  return std::string("_MultiPolygon");
87  }
88  UNREACHABLE() << "Unsupported argument to suffix: " << toString(type);
89  return "";
90 }
#define UNREACHABLE()
Definition: Logger.h:338
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: