MongoDB C++ Driver
legacy-1.1.2
|
Public Member Functions | |
MultiPolygon (const BSONObj &bson) | |
MultiPolygon constructor. More... | |
virtual BSONObj | toBSON () const |
Obtain a BSON representation of the MultiPolygon. More... | |
virtual BoundingBox< TCoordinates > | getBoundingBox () const |
Obtain the bounding box surrounding this MultiPolygon. More... | |
virtual GeoObjType | getType () const |
Get the geometry type of this object. More... | |
std::vector< Point< TCoordinates > > | getPoints () const |
Obtain the points that make up this MultiPolygon. More... | |
std::vector< Polygon< TCoordinates > > | getPolygons () const |
Obtain the Polygons that make up this MultiPolygon. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from mongo::geo::Geometry< TCoordinates > | |
static BoundingBox< TCoordinates > * | computeBoundingBox (const std::vector< Point< TCoordinates > > &points) |
Compute the bounding box around the given points. More... | |
static BoundingBox< TCoordinates > * | computeBoundingBox (const std::vector< BoundingBox< TCoordinates > > &bboxes) |
Compute the smallest bounding box that contains the given bounding boxes. More... | |
static BoundingBox< TCoordinates > * | parseBoundingBox (const BSONObj &bson) |
Parses the bounding box defined by the given geometry shape, represented in BSON. More... | |
|
explicit |
MultiPolygon constructor.
bson | A BSON representation of this MultiPolygon. |
|
virtual |
Obtain the bounding box surrounding this MultiPolygon.
Implements mongo::geo::GeoObj< TCoordinates >.
std::vector< Point< TCoordinates > > mongo::geo::MultiPolygon< TCoordinates >::getPoints | ( | ) | const |
Obtain the points that make up this MultiPolygon.
|
inline |
Obtain the Polygons that make up this MultiPolygon.
|
inlinevirtual |
Get the geometry type of this object.
Implements mongo::geo::GeoObj< TCoordinates >.
|
inlinevirtual |
Obtain a BSON representation of the MultiPolygon.
Implements mongo::geo::GeoObj< TCoordinates >.