Class Geospatial::GeoBase

class GeoBase

Subclassed by Geospatial::GeoGeometry, Geospatial::GeoGeometryCollection, Geospatial::GeoLineString, Geospatial::GeoMultiPolygon, Geospatial::GeoPoint, Geospatial::GeoPolygon

Public Types

enum GeoType

Values:

kPOINT
kLINESTRING
kPOLYGON
kMULTIPOLYGON
kGEOMETRY
kGEOMETRYCOLLECTION
enum GeoOp

Values:

kPROJECTION = 0
kINTERSECTION = 1
kDIFFERENCE = 2
kUNION = 3
kBUFFER = 4
kISVALID = 5
kISEMPTY = 6
kEQUALS = 7

Public Functions

GeoBase()
~GeoBase()
std::string getWktString() const
bool getWkb(std::vector<uint8_t> &wkb) const
virtual GeoType getType() const = 0
const OGRGeometry *getOGRGeometry() const
int32_t getBestPlanarSRID() const
bool transform(int32_t srid0, int32_t srid1)
bool transform(SQLTypeInfo &ti)
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
virtual std::unique_ptr<GeoBase> clone() const = 0

Public Static Functions

std::shared_ptr<OGRCoordinateTransformation> getTransformation(int32_t srid0, int32_t srid1)

Protected Functions

GeoBase(OGRGeometry *geom, const bool owns_geom_obj)

Protected Attributes

OGRGeometry *geom_ = nullptr
bool owns_geom_obj_

Protected Static Functions

OGRErr createFromWktString(const std::string &wkt, OGRGeometry **geom)
OGRErr createFromWkb(const std::vector<uint8_t> &wkb, OGRGeometry **geom)

Friends

friend Geospatial::GeoBase::GeoTypesFactory