OmniSciDB
a5dc49c757
|
#include <Types.h>
Static Public Member Functions | |
static OGRGeometry * | createOGRGeometry (const std::string &wkt_or_wkb_hex, const bool validate_with_geos_if_available) |
static std::unique_ptr< GeoBase > | createGeoType (const std::string &wkt_or_wkb_hex, const bool validate_with_geos_if_available) |
static std::unique_ptr< GeoBase > | createGeoType (const WkbView, const bool validate_with_geos_if_available) |
static std::unique_ptr< GeoBase > | createGeoType (OGRGeometry *geom, const bool validate_with_geos_if_available) |
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 validate_with_geos_if_available) |
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 validate_with_geos_if_available) |
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 validate_with_geos_if_available) |
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 validate_with_geos_if_available) |
static void | getNullGeoColumns (SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings) |
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) |
|
static |
Definition at line 1085 of file Types.cpp.
References createGeoTypeImpl(), createOGRGeometry(), and Geospatial::anonymous_namespace{Types.cpp}::validate_ogr().
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 1096 of file Types.cpp.
References Geospatial::GeoBase::createFromWkbView(), createGeoTypeImpl(), and Geospatial::anonymous_namespace{Types.cpp}::validate_ogr().
|
static |
Definition at line 1111 of file Types.cpp.
References createGeoTypeImpl(), and Geospatial::anonymous_namespace{Types.cpp}::validate_ogr().
|
staticprivate |
Definition at line 1241 of file Types.cpp.
Referenced by createGeoType().
|
static |
Definition at line 1063 of file Types.cpp.
References Geospatial::GeoBase::createFromWkbView(), Geospatial::GeoBase::createFromWktString(), Geospatial::anonymous_namespace{Types.cpp}::hex_string_to_binary_vector(), and Geospatial::anonymous_namespace{Types.cpp}::validate_ogr().
Referenced by createGeoType(), and import_export::import_thread_delimited().
|
static |
Definition at line 1121 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 1151 of file Types.cpp.
References createGeoType(), logger::ERROR, getGeoColumnsImpl(), and LOG.
|
static |
Definition at line 1176 of file Types.cpp.
References createGeoType(), logger::ERROR, getGeoColumnsImpl(), and LOG.
|
static |
Definition at line 1201 of file Types.cpp.
References logger::ERROR, geo_promoted_type_match(), SQLTypeInfo::get_type(), getGeoColumns(), and LOG.
|
staticprivate |
Definition at line 1267 of file Types.cpp.
References CHECK, CHECK_EQ, 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 1342 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().