MongoDB C++ Driver legacy-1.1.2
|
Public Member Functions | |
Polygon (const BSONObj &bson) | |
Polygon constructor. | |
Polygon (const std::vector< LineString< TCoordinates > > &linearRings) | |
Polygon constructor. | |
virtual BSONObj | toBSON () const |
Obtain a BSON representation of the polygon. | |
virtual BoundingBox< TCoordinates > | getBoundingBox () const |
Obtain the bounding box surrounding this Polygon. | |
virtual GeoObjType | getType () const |
Get the geometry type of this object. | |
std::vector< Point< TCoordinates > > | getPoints () const |
Obtain the points that make up this Polygon. | |
std::vector< LineString< TCoordinates > > | getLinearRings () const |
Obtain the linear rings that make up this Polygon. | |
virtual BSONObj | toBSON () const =0 |
Obtain a BSON representation of this GeoObj. | |
virtual BoundingBox< TCoordinates > | getBoundingBox () const =0 |
Obtain the bounding box of this GeoObj. | |
virtual GeoObjType | getType () const =0 |
Get the geometry type of this object. | |
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. | |
static BoundingBox< TCoordinates > * | computeBoundingBox (const std::vector< BoundingBox< TCoordinates > > &bboxes) |
Compute the smallest bounding box that contains the given bounding boxes. | |
static BoundingBox< TCoordinates > * | parseBoundingBox (const BSONObj &bson) |
Parses the bounding box defined by the given geometry shape, represented in BSON. | |
|
explicit |
Polygon constructor.
bson | A BSON representation of the polygon. |
|
explicit |
Polygon constructor.
linearRings | The linear rings that define this polygon. The first element represents the exterior linear ring. Any subsequent elements represent interior rings (or holes). |
|
virtual |
Obtain the bounding box surrounding this Polygon.
Implements mongo::geo::GeoObj< TCoordinates >.
std::vector< LineString< TCoordinates > > mongo::geo::Polygon< TCoordinates >::getLinearRings |
std::vector< Point< TCoordinates > > mongo::geo::Polygon< TCoordinates >::getPoints |
|
inlinevirtual |
Get the geometry type of this object.
Implements mongo::geo::GeoObj< TCoordinates >.
|
inlinevirtual |
Obtain a BSON representation of the polygon.
Implements mongo::geo::GeoObj< TCoordinates >.