GDAL

Public Member Functions | Public Attributes | List of all members
OGREnvelope Class Reference

Simple container for a bounding region (rectangle) More...

`#include <ogr_core.h>`

Inheritance diagram for OGREnvelope:

## Public Member Functions
| OGREnvelope ()
| Default constructor. More...
| OGREnvelope (const OGREnvelope &oOther)
| Copy constructor.
OGREnvelope & | operator= (const OGREnvelope &)=default
| Assignment operator.
int | IsInit () const
| Return whether the object has been initialized, that is, is non empty.
void | Merge (OGREnvelope const &sOther)
| Update the current object by computing its union with the other rectangle.
void | Merge (double dfX, double dfY)
| Update the current object by computing its union with the provided point.
void | Intersect (OGREnvelope const &sOther)
| Update the current object by computing its intersection with the other rectangle.
int | Intersects (OGREnvelope const &other) const
| Return whether the current object intersects with the other rectangle.
int | Contains (OGREnvelope const &other) const
| Return whether the current object contains the other rectangle.
bool | operator== (const OGREnvelope &other) const
| Return whether the current rectangle is equal to the other rectangle.
bool | operator!= (const OGREnvelope &other) const
| Return whether the current rectangle is not equal to the other rectangle.

## Public Attributes
double | MinX
| Minimum X value.
double | MaxX
| Maximum X value.
double | MinY
| Minimum Y value.
double | MaxY
| Maximum Y value.

## Detailed Description

Simple container for a bounding region (rectangle)

## Constructor & Destructor Documentation

## ◆ OGREnvelope()

OGREnvelope::OGREnvelope | ( |  | ) |
| inline

Default constructor.

Defines an empty rectangle

The documentation for this class was generated from the following file:

- ogr_core.h