OmniSciDB
a5dc49c757
|
#include <Types.h>
Public Member Functions | |
GeoPolygon (const std::vector< double > &coords, const std::vector< int32_t > &ring_sizes) | |
GeoPolygon (const std::string &wkt) | |
void | getColumns (std::vector< double > &coords, std::vector< int32_t > &ring_sizes, std::vector< double > &bounds) const |
GeoType | getType () const final |
int32_t | getNumInteriorRings () const |
std::unique_ptr< GeoBase > | clone () const final |
Public Member Functions inherited from Geospatial::GeoBase | |
GeoBase () | |
virtual | ~GeoBase () |
std::string | getWktString () const |
bool | getWkb (std::vector< uint8_t > &) const |
const OGRGeometry * | getOGRGeometry () const |
int32_t | getBestPlanarSRID () const |
bool | transform (int32_t srid0, int32_t srid1) |
bool | transform (SQLTypeInfo &ti) |
virtual bool | operator== (const GeoBase &other) const |
bool | isEmpty () const |
std::unique_ptr< GeoBase > | run (GeoOp op, const GeoBase &other) const |
std::unique_ptr< GeoBase > | optimized_run (GeoOp op, const GeoBase &other) const |
std::unique_ptr< GeoBase > | run (GeoOp op, double param) const |
bool | run (GeoOp op) const |
Protected Member Functions | |
GeoPolygon (OGRGeometry *geom, const bool owns_geom_obj) | |
Protected Member Functions inherited from Geospatial::GeoBase | |
GeoBase (OGRGeometry *geom, const bool owns_geom_obj) | |
Friends | |
class | GeoTypesFactory |
Additional Inherited Members | |
Public Types inherited from Geospatial::GeoBase | |
enum | GeoType { GeoType::kPOINT, GeoType::kLINESTRING, GeoType::kPOLYGON, GeoType::kMULTIPOLYGON, GeoType::kGEOMETRY, GeoType::kGEOMETRYCOLLECTION, GeoType::kMULTILINESTRING, GeoType::kMULTIPOINT } |
enum | GeoOp { GeoOp::kPROJECTION = 0, GeoOp::kINTERSECTION = 1, GeoOp::kDIFFERENCE = 2, GeoOp::kUNION = 3, GeoOp::kBUFFER = 4, GeoOp::kISVALID = 5, GeoOp::kISEMPTY = 6, GeoOp::kEQUALS = 7, GeoOp::kCONCAVEHULL = 8, GeoOp::kCONVEXHULL = 9 } |
Static Public Member Functions inherited from Geospatial::GeoBase | |
static std::shared_ptr < OGRCoordinateTransformation > | getTransformation (int32_t srid0, int32_t srid1) |
Static Protected Member Functions inherited from Geospatial::GeoBase | |
static int | createFromWktString (const std::string &wkt, OGRGeometry **geom) |
static int | createFromWkbView (OGRGeometry **geom, WkbView const) |
Protected Attributes inherited from Geospatial::GeoBase | |
OGRGeometry * | geom_ = nullptr |
bool | owns_geom_obj_ |
GeoPolygon::GeoPolygon | ( | const std::vector< double > & | coords, |
const std::vector< int32_t > & | ring_sizes | ||
) |
Definition at line 791 of file Types.cpp.
References CHECK, and Geospatial::GeoBase::geom_.
Referenced by clone().
GeoPolygon::GeoPolygon | ( | const std::string & | wkt | ) |
Definition at line 810 of file Types.cpp.
References CHECK, Geospatial::GeoBase::createFromWktString(), and Geospatial::GeoBase::geom_.
|
inlineprotected |
|
finalvirtual |
Implements Geospatial::GeoBase.
Definition at line 786 of file Types.cpp.
References CHECK, Geospatial::GeoBase::geom_, and GeoPolygon().
void GeoPolygon::getColumns | ( | std::vector< double > & | coords, |
std::vector< int32_t > & | ring_sizes, | ||
std::vector< double > & | bounds | ||
) | const |
Definition at line 823 of file Types.cpp.
References CHECK, Geospatial::GeoBase::geom_, NULL_DOUBLE, and anonymous_namespace{Types.cpp}::process_poly_ring().
int32_t GeoPolygon::getNumInteriorRings | ( | ) | const |
|
inlinefinalvirtual |
Implements Geospatial::GeoBase.
Definition at line 189 of file Types.h.
References kPOLYGON.
|
friend |