OmniSciDB
c1a53651b2
|
#include <Types.h>
Static Public Member Functions | |
static OGRGeometry * | createOGRGeometry (const std::string &wkt_or_wkb_hex) |
static std::unique_ptr< GeoBase > | createGeoType (const std::string &wkt_or_wkb_hex) |
static std::unique_ptr< GeoBase > | createGeoType (const WkbView) |
static std::unique_ptr< GeoBase > | createGeoType (OGRGeometry *geom) |
static bool | getGeoColumns (const std::string &wkt_or_wkb_hex, SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings, const bool promote_poly_to_mpoly=false) |
static bool | getGeoColumns (const std::vector< uint8_t > &wkb, SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings, const bool promote_poly_to_mpoly=false) |
static bool | getGeoColumns (OGRGeometry *geom, SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings, const bool promote_poly_to_mpoly=false) |
static bool | getGeoColumns (const std::vector< std::string > *wkt_or_wkb_hex_column, SQLTypeInfo &ti, std::vector< std::vector< double >> &coords_column, std::vector< std::vector< double >> &bounds_column, std::vector< std::vector< int >> &ring_sizes_column, std::vector< std::vector< int >> &poly_rings_column, const bool promote_poly_to_mpoly=false) |
static void | getNullGeoColumns (SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings, const bool promote_poly_to_mpoly=false) |
Static Private Member Functions | |
static std::unique_ptr < Geospatial::GeoBase > | createGeoTypeImpl (OGRGeometry *geom, const bool owns_geom_obj=true) |
static void | getGeoColumnsImpl (const std::unique_ptr< GeoBase > &geospatial_base, SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings, const bool promote_poly_to_mpoly=false) |
|
static |
Definition at line 1061 of file Types.cpp.
References createGeoTypeImpl(), and createOGRGeometry().
Referenced by getGeoColumns(), Geospatial::GeoBase::optimized_run(), Geospatial::GeoBase::run(), RelAlgTranslator::translateGeoFunctionArg(), and ddl_utils::anonymous_namespace{DdlUtils.cpp}::validate_literal().
|
static |
Definition at line 1066 of file Types.cpp.
References Geospatial::GeoBase::createFromWkbView(), and createGeoTypeImpl().
|
static |
Definition at line 1075 of file Types.cpp.
References createGeoTypeImpl().
|
staticprivate |
Definition at line 1217 of file Types.cpp.
Referenced by createGeoType().
|
static |
Definition at line 1044 of file Types.cpp.
References Geospatial::GeoBase::createFromWkbView(), Geospatial::GeoBase::createFromWktString(), and Geospatial::anonymous_namespace{Types.cpp}::hex_string_to_binary_vector().
Referenced by createGeoType(), and import_export::import_thread_delimited().
|
static |
Definition at line 1079 of file Types.cpp.
References createGeoType(), logger::ERROR, getGeoColumnsImpl(), getNullGeoColumns(), and LOG.
Referenced by Parser::InsertValuesStmt::analyze(), import_export::TypedImportBuffer::convert_arrow_val_to_import_buffer(), Parser::AddColumnStmt::execute(), import_export::fill_missing_columns(), DBHandler::fillGeoColumns(), getGeoColumns(), import_export::import_thread_delimited(), import_export::import_thread_shapefile(), Analyzer::GeoConstant::makePhysicalConstant(), foreign_storage::TextFileBufferParser::processGeoColumn(), foreign_storage::GeospatialEncoder::processGeoElement(), and RelAlgTranslator::translateGeoLiteral().
|
static |
Definition at line 1115 of file Types.cpp.
References createGeoType(), logger::ERROR, getGeoColumnsImpl(), and LOG.
|
static |
Definition at line 1145 of file Types.cpp.
References createGeoType(), logger::ERROR, getGeoColumnsImpl(), and LOG.
|
static |
Definition at line 1175 of file Types.cpp.
References logger::ERROR, SQLTypeInfo::get_type(), getGeoColumns(), kMULTIPOLYGON, kPOLYGON, and LOG.
|
staticprivate |
Definition at line 1243 of file Types.cpp.
References CHECK, CHECK_GT, Geospatial::GeoBase::kGEOMETRY, Geospatial::GeoBase::kGEOMETRYCOLLECTION, Geospatial::GeoBase::kLINESTRING, kLINESTRING, Geospatial::GeoBase::kMULTILINESTRING, kMULTILINESTRING, Geospatial::GeoBase::kMULTIPOINT, kMULTIPOINT, Geospatial::GeoBase::kMULTIPOLYGON, kMULTIPOLYGON, Geospatial::GeoBase::kPOINT, kPOINT, Geospatial::GeoBase::kPOLYGON, kPOLYGON, and SQLTypeInfo::set_type().
Referenced by getGeoColumns().
|
static |
Definition at line 1309 of file Types.cpp.
References SQLTypeInfo::get_type(), kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kPOINT, kPOLYGON, NULL_ARRAY_DOUBLE, and NULL_DOUBLE.
Referenced by import_export::TypedImportBuffer::convert_arrow_val_to_import_buffer(), getGeoColumns(), import_export::import_thread_delimited(), import_export::import_thread_shapefile(), foreign_storage::TextFileBufferParser::processGeoColumn(), foreign_storage::TextFileBufferParser::processInvalidGeoColumn(), and foreign_storage::GeospatialEncoder::processNullGeoElement().