OmniSciDB  a987f07e93
 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 241 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 219 of file RelAlgTranslatorGeo.cpp.

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

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