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

Functions

std::string suffix (SQLTypes type)
 
SQLTypes get_ti_from_geo (const Geospatial::GeoBase *geo)
 

Function Documentation

SQLTypes anonymous_namespace{RelAlgTranslatorGeo.cpp}::get_ti_from_geo ( const Geospatial::GeoBase geo)

Definition at line 251 of file RelAlgTranslatorGeo.cpp.

References CHECK, Geospatial::GeoBase::getType(), Geospatial::GeoBase::kLINESTRING, kLINESTRING, Geospatial::GeoBase::kMULTILINESTRING, kMULTILINESTRING, Geospatial::GeoBase::kMULTIPOINT, kMULTIPOINT, Geospatial::GeoBase::kMULTIPOLYGON, kMULTIPOLYGON, kNULLT, Geospatial::GeoBase::kPOINT, kPOINT, Geospatial::GeoBase::kPOLYGON, kPOLYGON, and UNREACHABLE.

+ Here is the call graph for this function:

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

Definition at line 229 of file RelAlgTranslatorGeo.cpp.

References kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kPOINT, and kPOLYGON.

229  {
230  if (type == kPOINT) {
231  return std::string("_Point");
232  }
233  if (type == kMULTIPOINT) {
234  return std::string("_MultiPoint");
235  }
236  if (type == kLINESTRING) {
237  return std::string("_LineString");
238  }
239  if (type == kMULTILINESTRING) {
240  return std::string("_MultiLineString");
241  }
242  if (type == kPOLYGON) {
243  return std::string("_Polygon");
244  }
245  if (type == kMULTIPOLYGON) {
246  return std::string("_MultiPolygon");
247  }
248  throw QueryNotSupported("Unsupported argument type");
249 }