OmniSciDB  a5dc49c757
 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 244 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 222 of file RelAlgTranslatorGeo.cpp.

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

222  {
223  if (type == kPOINT) {
224  return std::string("_Point");
225  }
226  if (type == kMULTIPOINT) {
227  return std::string("_MultiPoint");
228  }
229  if (type == kLINESTRING) {
230  return std::string("_LineString");
231  }
232  if (type == kMULTILINESTRING) {
233  return std::string("_MultiLineString");
234  }
235  if (type == kPOLYGON) {
236  return std::string("_Polygon");
237  }
238  if (type == kMULTIPOLYGON) {
239  return std::string("_MultiPolygon");
240  }
241  throw QueryNotSupported("Unsupported argument type");
242 }